From 7ce57543dc844e704fb755911d13eed9ea67b96c Mon Sep 17 00:00:00 2001 From: Nemo D'ACREMONT Date: Wed, 7 May 2025 21:56:05 +0200 Subject: [PATCH] refactor: rename start-chess.py and fix typos --- chess/{starter-chess.py => main.py} | 0 chess/player.py | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename chess/{starter-chess.py => main.py} (100%) diff --git a/chess/starter-chess.py b/chess/main.py similarity index 100% rename from chess/starter-chess.py rename to chess/main.py diff --git a/chess/player.py b/chess/player.py index 2a20e3f..609e17a 100644 --- a/chess/player.py +++ b/chess/player.py @@ -11,12 +11,12 @@ class PlayerInterface: # Returns your player name , as to be displayed during the game def getPlayerName(self) -> str: - return " Not Defined " + return "Not Defined" # Returns your move. The move must be a valid string of coordinates ("A1", - # "D5", ...) on the grid or the special "PASS" move. A couple of two integers , - # which are the coordinates of where you want to put your piece on the board . - # Coordinates are the coordinates given by the Goban . py method legal_moves (). + # "D5", ...) on the grid or the special "PASS" move. A couple of two integers, + # which are the coordinates of where you want to put your piece on the board. + # Coordinates are the coordinates given by the Goban. py method legal_moves (). def getPlayerMove(self) -> chess.Move: return chess.Move.null() @@ -25,8 +25,8 @@ class PlayerInterface: def playOpponentMove(self, move): self.board.push(move) - # Starts a new game , and give you your color . As defined in Goban . py : color =1 - # for BLACK , and color =2 for WHITE + # Starts a new game, and give you your color. As defined in Goban.py : color=1 + # for BLACK , and color=2 for WHITE def newGame(self, color): self.board = chess.Board() self.color = color