File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
33import re
4- from abc import ABC , abstractproperty
4+ from abc import ABC , abstractmethod
55from typing import Generator , Literal , Optional
66from typing import Type
77import numpy as np
@@ -137,8 +137,8 @@ def __init__(
137137
138138 logger .info (f"Board initialized with shape { self .shape } ." )
139139
140- # @abstractmethod
141- @abstractproperty
140+ @ property
141+ @abstractmethod
142142 def legal_moves (self ) -> Generator [Move , None , None ]:
143143 """
144144 Return list legal moves for the current position.
@@ -167,7 +167,8 @@ def is_threefold_repetition(self) -> bool:
167167 return True
168168 return False
169169
170- @abstractproperty
170+ @property
171+ @abstractmethod
171172 def is_draw (self ) -> bool :
172173 ...
173174
You can’t perform that action at this time.
0 commit comments