Created
February 17, 2022 21:15
-
-
Save bigkevmcd/1a38e3cbf9a37c9621e1de0aa69152aa to your computer and use it in GitHub Desktop.
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 was the basis of the individual examples that were written. | |
Feature: Monopoly Game | |
Scenario: Player Movement | |
Given player "A" on "The Angel Islington" | |
When the player rolls a 2 and 1 | |
Then they land on "Pentonville Road" | |
Scenario: Passing through GO! | |
Given: player "B" on "Park Lane" | |
And player "B" has a balance of £1000 | |
When the player rolls a 1 and 3 | |
Then they land on "Old Kent Road" | |
And their balance is now £1200 | |
Scenario: Go to Jail | |
Given player "C" on "Leicester Square" | |
When the player rolls a 3 and 1 | |
Then they are moved immediately to "In Jail" | |
And they do not pass through "Go!" | |
Scenario: Income Tax | |
Given player "D" on "Mayfair" | |
And player "D" has a balance of £3000 | |
When the player rolls a 1 and 3 | |
Then they land on "Income Tax" | |
And they pay £200 to the bank | |
And their balance is now £2800 | |
Scenario: Player Sequence | |
Given the players in the game are "A", "B" | |
And it is the turn of player "A" | |
When the player rolls a 2 and 1 | |
Then player "A" moves | |
And player "B" is next | |
Scenario: Rolling doubles | |
Given the players in the game are "A", "B" | |
And it is the turn of player "A" | |
And player "A" is on "Go!" | |
When player "A" rolls 3 and 3, they land on "Reading Railroad" | |
Then they roll again and get 1 and 2 | |
And they arrive on "Vermont Avenue" | |
And player "B" is next | |
Scenario: Roll double dice three times | |
Given the players in the game are "A", "B" | |
And it is the turn of player "A" | |
And player "A" is on "Go!" | |
When player "A" rolls 1 and 1, they land on "Community Chest" | |
Then they roll again and get 2 and 2 | |
And they arrive on "Vermont Avenue" | |
And player "B" is next | |
Scenario: Buy property | |
Given player "A" has a balance of £1000 | |
And the property "Baltic Avenue" costs £80 and is owned by the Bank | |
When player "A" lands on "Baltic Avenue" | |
And player "A" is offered the chance to buy "Baltic Avenue" | |
And player "A" decides to buy "Baltic Avenue" | |
Then player "A" pays the bank £80 and has a balance of £920 | |
And player "A" has the deed for "Baltic Avenue" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment