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 collaboratorPlace Mark
In order to play Tic Tac Toe
As a human player
I want to place a mark
- Scenarios
-
- place a mark
-
- Given
- I am the first player "X"
- When
-
I place the mark:
X - Then
-
I should see the grid:
X
- players take turn
-
- Given
- I am the first player "X"
- When
-
I place the mark:
X - Then
- "O" should be the next player
- draw
-
- Given
- a board state
- When
- the board is full without a win
- Then
- the game should be a draw
- win
-
- Given
- I am the first player "X"
- When
- I win
- Then
- "X" should "win"
- And
- "O" should "lose"
- validate ply
-
- Given
-
the grid:
X - When
-
I place the mark:
O - Then
- the last placed mark should not be valid
Last published almost 7 years ago by esambo.