To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorPlayers take turns
In order to play Tic Tac Toe
As a human player
I want to play against an opponent
- Scenarios
-
- take turns
- mark open position
- mark already taken position
- mark empty position number
- mark too big of a position number
- take turns until terminal game 1247536
- take turns
-
- Given
-
the grid:
X O X O - And
- I will mark position number "3"
- When
- the game continuous
- Then
- the grid should update
- And
- player "X" should go next
- And
- the grid should update
- And
- player "O" should go next
- mark open position
-
- Given
-
the grid:
X O X O - And
- I will mark position number "3"
- When
- the game continuous
- Then
- player "O" should go next
- And
- the next position number provided should be "3"
- And
- the grid should update
- mark already taken position
-
- Given
-
the grid:
X O X O - And
- I will mark position number "1"
- And
- I will mark position number "3"
- When
- the game continuous
- Then
- player "O" should go next
- And
- the next position number provided should be "1"
- And
- the position number should be invalid
- And
- player "O" should go next
- And
- the next position number provided should be "3"
- And
- the grid should update
- mark empty position number
-
- Given
-
the grid:
X O X O - And
- I will mark position number ""
- And
- I will mark position number "3"
- When
- the game continuous
- Then
- player "O" should go next
- And
- the next position number provided should be ""
- And
- the position number should be invalid
- And
- player "O" should go next
- mark too big of a position number
-
- Given
-
the grid:
X O X O - And
- I will mark position number "10"
- And
- I will mark position number "3"
- When
- the game continuous
- Then
- player "O" should go next
- And
- the next position number provided should be "10"
- And
- the position number should be invalid
- And
- player "O" should go next
- take turns until terminal game 1247536
-
- Given
-
the grid:
X O X O - And
- I will mark position number "3"
- When
- the game continuous
- Then
- player "X" should go next
- And
- player "O" should go next
- And
- player "X" should go next
- And
- the game should be terminal next
Last published almost 7 years ago by esambo.