Logo: Relish

  1. Sign in

Project: Chessboard

Taking a piece.

In order to play chess
As a Player
I want to be able to take the oppositions piece.

Scenarios
Pawn Takes the Knight
Given
I have a White Pawn at D3
And
I have a Black Knight at C4
When
the Pawn moves to C4
Then
the Knight should be taken
And
the Pawn should be at C4
And
I should be shown "Pawn takes Knight. Pawn wins"
Pawn collides with Knight.
Given
I have a White Pawn at C3
And
I have a Black Knight at C4
When
the Pawn moves to C4
Then
the Knight should be at C4
And
the Pawn should be at C3
And
I should be shown "Pawn collides with Knight. Draw"
Knight takes Pawn.
Given
I have a Black Knight at D6
And
I have a White Pawn at F6
And
the Pawn moves to F7
When
I move the Knight to F7
Then
the Pawn should be taken
And
I should be shown "Knight takes Pawn. Knight Wins"

Last published over 7 years ago by JohnnoNolan.