Community Chest/Chance Acceptance Tests

Draw Jail Card Acceptance Test

When a player lands on a Community Chest or Chance cell, the player draws a card from the Community Chest or Chance. If the card is a Jail card, the player goes to Jail without getting paid when passing the Go cell.

fit.ActionFixture
start edu.ncsu.realestate.CommunityChestJail  
press initialize game board  
enter number of players 2
enter player 1 name 1
enter player 2 name 2
enter player dice roll 2
press draw cc card  
check player position Jail
press end turn  

Draw Lose Money Card Acceptance Test

When a player lands on a Community Chest or Chance cell, the player draws a card from the Community Chest or Chance. If the card is a lose money card, the player pays the money to the bank. If he does not have enough money, he is out of the game, and the cells he owns become available without any houses.

In this test, the player will lose $20.

fit.ActionFixture
start edu.ncsu.realestate.CommunityChestLoseMoney  
press initialize game board  
enter number of players 2
enter player 1 name 1
enter player 2 name 2
enter player dice roll 2
press draw cc card  
check player money 1480

Draw Gain Money Card Acceptance Test

When a player lands on a Community Chest or Chance cell, the player draws a card from the Community Chest or Chance. If the card is a gain money card, the player gets the money from the bank.

In this test, the player will gain $50.

fit.ActionFixture
start edu.ncsu.realestate.CommunityChestGainMoney  
press initialize game board  
enter number of players 2
enter player 1 name 1
enter player 2 name 2
enter player dice roll 2
press draw cc card  
check player money 1550

Draw Move Player Card Acceptance Test

When a player lands on a Community Chest or Chance cell, the player draws a card from the Community Chest or Chance. If the card is a move player card, the player goes to the specified cell. If the player passes go, he or she is paid $200 from the bank.

There are two community chest cards in the game. The first one sends the player to Blue 1, and the other Blue 2.

fit.ActionFixture
start edu.ncsu.realestate.CommunityChestMovePlayer  
press initialize game board  
enter number of players 2
enter player 1 name 1
enter player 2 name 2
enter player dice roll 2
press draw cc card  
check player position Blue 1
check player money 1700
press end turn  
enter player dice roll 2
press draw cc card  
check player position Blue 2
check player money 1500

Modified: 8/22/2005

Return to FIT Summary
Return to RealEstate Example

Copyright © 2004-2005 North Carolina State University, Dr. Laurie Williams, Dright Ho, and Sarah Smith