Created
March 7, 2014 11:53
-
-
Save dcsg/9410169 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# language: pt | |
Funcionalidade: Player can issue a challenge | |
In order to find a suitable opponent | |
As an online chess player | |
I want to be able to issue a challenge | |
Cenário: Start game if there is a suitable opponent online | |
Dado am a player rated 1600 | |
E I accept a threshold of 200 points | |
E there is one player online named "kingscrusher" rated 1800 | |
E "kingscrusher" has issued a challenge himself | |
E there are no other players online | |
Quando I issue a new challenge | |
Então a new match should start between me and "kingscrusher" | |
Cenário: Don't start a game if there are no suitable opponents online | |
Dado I am a player rated 1600 | |
E I accept a threshold of 200 points | |
E there is one player online named "checkfright" rated 800 | |
Quando I issue a new challenge | |
Então I should be told there are no suitable opponents online | |
E a new match should not start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment