Spaces:
Sleeping
Sleeping
Format file
Browse files- src/util/__init__.py +0 -0
- src/util/board_vis.py +3 -2
src/util/__init__.py
ADDED
|
File without changes
|
src/util/board_vis.py
CHANGED
|
@@ -24,10 +24,10 @@ UNICODE_PIECES = {
|
|
| 24 |
}
|
| 25 |
|
| 26 |
|
| 27 |
-
def colored_unicode_board(fen:Optional[str]=None) -> str:
|
| 28 |
if fen is None:
|
| 29 |
fen = chess.STARTING_FEN
|
| 30 |
-
|
| 31 |
board = chess.Board(fen)
|
| 32 |
|
| 33 |
board_str = ""
|
|
@@ -74,6 +74,7 @@ def colored_unicode_board(fen:Optional[str]=None) -> str:
|
|
| 74 |
|
| 75 |
return board_str
|
| 76 |
|
|
|
|
| 77 |
if __name__ == "__main__":
|
| 78 |
# Example usage:
|
| 79 |
board = chess.Board()
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
|
| 27 |
+
def colored_unicode_board(fen: Optional[str] = None) -> str:
|
| 28 |
if fen is None:
|
| 29 |
fen = chess.STARTING_FEN
|
| 30 |
+
|
| 31 |
board = chess.Board(fen)
|
| 32 |
|
| 33 |
board_str = ""
|
|
|
|
| 74 |
|
| 75 |
return board_str
|
| 76 |
|
| 77 |
+
|
| 78 |
if __name__ == "__main__":
|
| 79 |
# Example usage:
|
| 80 |
board = chess.Board()
|