forked from chrismdp/snakesandladders
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated features with better board descriptors and added smoke test
- Loading branch information
1 parent
b810111
commit 102f1d0
Showing
3 changed files
with
33 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Feature: Smoke test: combination of moves | ||
In order to play a full game | ||
As a player | ||
I want the moves to work in combination | ||
|
||
Background: | ||
Given a board with: | ||
| type | from | to | | ||
| snake | 3 | 2 | | ||
| ladder | 5 | 10 | | ||
| snake | 15 | 11 | | ||
| ladder | 1 | 7 | | ||
| ladder | 14 | 23 | | ||
|
||
Scenario: Playing a game | ||
When I start a game with 3 players | ||
And player 1 rolls 1 | ||
And player 2 rolls 6 | ||
And player 2 rolls 6 | ||
And player 2 rolls 3 | ||
And player 1 rolls 3 | ||
And player 2 rolls 4 | ||
Then player 1 is now on position 10 | ||
And player 2 is now on position 23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters