-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add roadmap for remaining implementation
- Loading branch information
1 parent
f0f6812
commit 2e38db3
Showing
7 changed files
with
74 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
"""An example player implementation.""" | ||
|
||
# from royal_game.modules.player import Player | ||
# from typing import Iterable | ||
# from royal_game.modules.board import Board | ||
# from royal_game.modules.move import Move | ||
from royal_game.modules.player import Player | ||
from typing import Iterable | ||
from royal_game.modules.board import Board | ||
from royal_game.modules.move import Move | ||
|
||
# class SamplePlayer(Player): | ||
# """You must implement the select_move method!""" | ||
# def __init__(self): | ||
# choose a name for your player | ||
# super().__init__(name) | ||
# def select_move(self, board: Board, available_moves: Iterable[Move]) -> Move: | ||
# pass | ||
class SamplePlayer(Player): | ||
"""You must implement the select_move method!""" | ||
def __init__(self): | ||
"""choose a name for your player""" | ||
super().__init__("{name goes here}") | ||
def select_move(self, board: Board, available_moves: Iterable[Move]) -> Move: | ||
""" | ||
Select a move based on some heuristic. | ||
The complete board state can be accessed through board.board by indexing | ||
with the name of the grids. The grid representation is reproduced below: | ||
white (W): W4 W3 W2 W1 WS WE W14 W13 | ||
public: 5 6 7 8 9 10 11 12 | ||
black (B): B4 B3 B2 B1 BS BE B14 B13 | ||
""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters