Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h3>Monopoly flow</h3>
- <ol>
- <li>Let user x roll the die</li>
- <li>Does user have liberty? - no, allow payment, use of card or die roll. Goto step 7<ol><li>If die is double?- set liberty state to true</li><li>Goto step 7</li></ol></li>
- <li>Move the user the correct number of squares</li>
- <li>Carry out action if the square is active, or allow the user to purchase the property
- <ul>
- <li>The purchase of property <ol><li>Does the user wish to purchase?-no, go to step 5</li><li>Does the user have the capital? - no allow for transaction</li><li>Deduct captital and reward with deed</li></ol></li>
- <li>Rent movement<ol><li>Can the user pay? - no allow transaction or bankrupcy</li><li>Deduct money from pesent to landlord</li></ol></li>
- <li>Tax/Pass go<ol><li>Deduct or reward capital to the user in question</li></ol></li>
- <li>Go to Jail <ol><li>Set users liberty state to false</li></ol></li>
- <li>Collect card</li>
- </ul></li>
- <li>Allow the user to carry out other transactions on their go</li>
- <li>Roll again due to double? - goto step 3</li>
- <li>Move onto next user</li>
- </ol>
Advertisement
Add Comment
Please, Sign In to add comment