Logo: Relish

  1. Sign in

Project: Tic-tac-toe

Place 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 about 5 years ago by esambo.