Bunntin / GroupProject

1 stars 0 forks source link

Create test cases #5

Open Bunntin opened 7 months ago

itzzfitz commented 7 months ago

Here are all the ideas I have so far for the tests:

  1. Valid Moves: - Test input: Player makes a valid move (e.g., "X" in an empty cell). - Expected output: Move is successfully recorded.
  2. Winning Moves: - Test input: Player makes a move that leads to winning condition (e.g., three "X" in a row). - Expected output: Game declares the player as the winner.
  3. Draw Condition: - Test input: All cells are filled without a winner. - Expected output: Game declares a draw. 4. Invalid Inputs: - Test input: Player tries to make a move in an already filled cell. - Expected output: Game prompts player to make a valid move.
  4. Edge Cases: - Test input: Players make moves resulting in different edge cases (e.g., two empty cells left, one move away from winning). - Expected output: Game handles edge cases appropriately.
  5. Alternate Turns: - Test input: Players take turns making moves. - Expected output: Game switches turns correctly between players.
  6. Illegal Moves: - Test input: Player tries to make a move outside the game grid. - Expected output: Game rejects illegal moves.
  7. Restart Game: - Test input: Players choose to restart the game. - Expected output: Game resets to initial state.
  8. Multiple Games: - Test input: Players play multiple games consecutively. - Expected output: Game transitions smoothly.
  9. AI vs. Player: - Test input: Player plays against an AI opponent. - Expected output: AI makes valid moves and provides a challenge to the player.
MondymanDemi commented 7 months ago

Demi's feedback