AlbinBjerhem / Connect_four

0 stars 0 forks source link

create class Player #12

Open AlbinBjerhem opened 2 months ago

xfekke commented 2 months ago

As a user, I want to be able to register my name before the game starts. The game should confirm that my name has been successfully registered.

As a user, I want my name to be saved as a property for that game as a variable (player1).

As a user, I want my opponents name to be saved the same way but as player2.

As a user, I want to be notified if I try to start the game without entering a name, so that I am reminded to provide a name before the game can begin.

As a user, I want the current player’s name to be clearly displayed on the screen so that I always know whose turn it is. (currentPlayer).

As a user, I want the game to automatically switch to the other player’s turn after I make a move, so that the game flow is smooth.

As a user, I want the game to clearly display a message with the winning player’s name when the game is over. The winner’s name should be saved as a variable (displayWinner) so it can be displayed.