Skip to content
Janis Rullis edited this page Oct 23, 2020 · 5 revisions

Use cases to cover

  • Tie.
  • Row win.
  • Column win.
  • Diagonal win.

Choose the board's dimensions

Accept only integers from 2 to 20.

  • Otherwise, it may complicate or even crash the system to display for example 100000x100000 board.
  • To play 100000x100000 board might be a nightmare.

Allow setting game's board dimensions only once - before starting it.

  • Otherwise it would be too much fun when suddenly one player changes again board dimensions.

Choose the select cell count to win

  • Allow setting only once - before starting it.
  • Keep it in the board's dimensions.

Select the cell

  • Can select cells only when the game has started ('ongoing' status).
  • Allow selecting the cell only once.
  • Keep it in the board's dimensions.

If this is the last move

  • Check for a tie or a win.
  • Inform the user and then provide the input to start a new game.
Clone this wiki locally