In addition to what Yuushi wrote Yuushi wrote:
It would be better to have
Board
validate the moves, instead ofPlayer
. That way the players would work even if you changed the size of the board. For an invalid moveBoard
could raise an exception that you handle in the main game loop.If you moved the handling of user input to the
tictac
function, it would be easier to understand the whole user experience.
In addition to what Yuushi wrote:
It would be better to have
Board
validate the moves, instead ofPlayer
. That way the players would work even if you changed the size of the board. For an invalid moveBoard
could raise an exception that you handle in the main game loop.If you moved the handling of user input to the
tictac
function, it would be easier to understand the whole user experience.
In addition to what Yuushi wrote:
It would be better to have
Board
validate the moves, instead ofPlayer
. That way the players would work even if you changed the size of the board. For an invalid moveBoard
could raise an exception that you handle in the main game loop.If you moved the handling of user input to the
tictac
function, it would be easier to understand the whole user experience.
In addition to what Yuushi wrote:
It would be better to have Board
validate the moves, instead of Player
. That way the players would work even if you changed the size of the board. For an invalid move Board
could raise an exception that you handle in the main game loop.
It would be better to have
Board
validate the moves, instead ofPlayer
. That way the players would work even if you changed the size of the board. For an invalid moveBoard
could raise an exception that you handle in the main game loop.If you moved the handling of user input to the
tictac
function, it would be easier to understand the whole user experience.
In addition to what Yuushi wrote:
It would be better to have Board
validate the moves, instead of Player
. That way the players would work even if you changed the size of the board. For an invalid move Board
could raise an exception that you handle in the main game loop.
In addition to what Yuushi wrote:
It would be better to have
Board
validate the moves, instead ofPlayer
. That way the players would work even if you changed the size of the board. For an invalid moveBoard
could raise an exception that you handle in the main game loop.If you moved the handling of user input to the
tictac
function, it would be easier to understand the whole user experience.
In addition to what Yuushi wrote:
It would be better to have Board
validate the moves, instead of Player
. That way the players would work even if you changed the size of the board. For an invalid move Board
could raise an exception that you handle in the main game loop.