DRAFT: MAY CHANGE
There are four functions that you are expected to design and test:
draw_board
: Create a String representation of the board.is_legal_move
: True if the attempted move is legal. Used to prevent players from moving in full columns or playing in column -5.is_won
: True if the game is over (either player has four in a row).make_move
: Gives a new Board with a piece added. Assumes that the move is legal.To keep scoring straightforward, each function is worth 10 points.
This should draw with no issues, showing the board each row on its own line. I do not anticipate problems with this function.