home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

need HELP FINISHING!!

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2108
Discussions: 200,948, Posts: 2,379,414, Members: 246,310
Old March 28th, 2009, 12:19 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Mar 2009
Posts: 1
need HELP FINISHING!!


.
2. Specification

Mini Monopoly is a small simplified version of monopoly. The board has 14 squares, Go, Go to Jail, Free Parking and Jail on each corner, Chest and Chance middle top and bottom and 8 residential properties that can be bought.

Here is the layout of the board:



There are 2 players; a manual player and the computer, each player starts with $500 and rolls the dice moving in an anti clockwise direction.
Every time a player passes Go, they receive $200.

The properties Go, Free Parking and Jail are generic properties, they cannot be bought and have no rent associated with them.

The properties Go to Jail, Chance and Chest are special properties that cannot be bought, can move a player’s position on the board and change the player’s balance.

Each residential property can be bought only once and never sold. The price for each property is displayed above. If a player lands on another player’s property, they must pay 10% of the price eg computer owns Sydney, person lands on Sydney and pays computer $20. The system holds the balances for each player.

The game ends if either player has more than $1000 or either player has less than $0.


The tasks are described below; in each task description, the success or normal case is described first, then any special or error cases.

1. Add Player

A user must enter a name for the manual player. The player balance and the board position of the player are held by the system.

2. Play

The dice is rolled and the player moves the designated number of spaces to the new property. Any move is applied to the player’s position, any penalty or bonus is applied to the player’s balance.

If either player does not have enough money, the system displays a message and the game is terminated.

2.1 Buy Property
If the property is residential and has not been sold, the player is asked if they would like to buy it.
The computer player will always buy a residential property.

If the player does not have enough money, the system displays a message.

2.2. Pay Rent

If the property is owned by another player, the system will subtract the rent from the player’s balance and add the rent to the owner’s balance.

I have added the picture of the board and my starting code
could someone please help me with finishing this off please
Attached Thumbnails
need-help-finishing-2r6h0ue.jpg  
Attached Files
File Type: zip skel.zip (12.8 KB, 4 views)
malina22 is offline   Reply With Quote
Old April 5th, 2009, 11:02 AM     #2 (permalink)
Caveat Emptor
 
Rootstonian's Avatar
 
Join Date: Mar 2005
Location: Out of my mind
Posts: 3,241
Send a message via AIM to Rootstonian
How's it going? Looks like you did nice work on the skeleton code, what's keeping you from filling in the the method code?
Rootstonian is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Finishing off my first built computer, need help please. iddqd General Tech Discussion 26 January 16th, 2009 12:06 AM
Finishing new computer build- need hd, gpu, and optical drive theicfire General Tech Discussion 0 December 5th, 2008 12:20 AM
Finishing up at where Daddy stopped... ben-the-slacker IMO Community 8 April 17th, 2004 09:22 PM
Staining and finishing cabinets Fingers IMO Community 58 July 27th, 2003 02:38 PM
CD Creator-'Finishing' CD??? tigerpilot General Tech Discussion 10 January 6th, 2003 11:49 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (175)
Is It Just Me? (2940)
The disrespect of Obama by Russian .. (26)
Wireless Televisions. (12)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (5)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
Multiple Restarts Required at Boot (1)
For Sale BFG GTX285 OC2 with 10 year .. (3)
Point and Shoot Camera Suggestions. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Graphics Card Upgrade Question (3)
Laptop with wireless problem. (2)
Internet Lost (1)
Hp Artist Edition + Matching Bag (0)
My monitor won't turn on after instal.. (0)
Asus P4G8X Mobo (6)
radeon x850xt platinum & shader 3 (5)
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
windows 7 internet problem (5)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Have you switched yet? (86)
screen resolution vs monitor size (2)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)


All times are GMT -4. The time now is 10:31 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28