Spaces:
Configuration error
Configuration error
Upload stratego\strategies\heuristic_move.py with huggingface_hub
Browse files
stratego//strategies//heuristic_move.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# import random
|
| 2 |
+
# from .base import Strategy
|
| 3 |
+
|
| 4 |
+
# class RandomStrategy(BaseStrategy):
|
| 5 |
+
# def decide_move(self, board_state, player):
|
| 6 |
+
# moves = self._get_possible_moves(board_state, player)
|
| 7 |
+
# return random.choice(moves) if moves else None
|
| 8 |
+
|
| 9 |
+
# def _get_possible_moves(self, board_state, player):
|
| 10 |
+
# # simulăm niște mutări posibile pentru exemplu
|
| 11 |
+
# return [('A2', 'A3'), ('B4', 'B5'), ('C1', 'C2')]
|