Spaces:
Runtime error
Runtime error
Added an empty interface class
Browse files- src/interface.py +19 -0
src/interface.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class ModelInterface:
|
| 2 |
+
def __init__(self, model_name: str):
|
| 3 |
+
pass
|
| 4 |
+
self.current_moves = ""
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
#Appends model's next move to the current UCI moves and returns them
|
| 9 |
+
def get_next_move(self):
|
| 10 |
+
pass
|
| 11 |
+
|
| 12 |
+
#Inputs the current UCI moves with the opponent's move at the end
|
| 13 |
+
def add_opp_move(self, moves: str):
|
| 14 |
+
pass
|
| 15 |
+
|
| 16 |
+
#Checks if the last move is legal
|
| 17 |
+
def is_legal(self, move: str):
|
| 18 |
+
pass
|
| 19 |
+
|