Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help with Monopoly
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
JustTrying2GetBy




PostPosted: Thu Jan 20, 2005 2:09 pm   Post subject: Help with Monopoly

I am making a monopoly game and I am wondering how to get the pieces to move around the board. Question
Sponsor
Sponsor
Sponsor
sponsor
josh




PostPosted: Thu Jan 20, 2005 2:26 pm   Post subject: (No subject)

Since you are new, I am not gunna flame you, but if you want some help, post some of your code so that we can see you are not just trying to get us to do your project for you and so we can see what you have done so far. Hard to tell you what to do when we can't see what is done already Wink
Tony




PostPosted: Thu Jan 20, 2005 2:52 pm   Post subject: (No subject)

each piece needs to know where it is. Have a variable to store it's location. Such as
Turing:

myLocation = 5

meaning I'm in the 5th cell. To draw the piece simply
Turing:

Pic.Draw(boardx(myLocation),boardy(myLocation),myPictureID,picCopy)

where boardx/y are arrays with the location of each cell on the board.
basketball4ever




PostPosted: Thu Jan 20, 2005 5:53 pm   Post subject: (No subject)

use a roll
a current position
and set a x and y coordinate for each position
label each place on the board with a position
so that
currentposition := currentposition + roll
then have a procedure/check what coordinates the current position is...
not hard game to make Wink
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: