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

Username:   Password: 
 RegisterRegister   
 Making Peices start on a board game
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
JonnyBigBoi




PostPosted: Sun Jan 09, 2005 10:32 pm   Post subject: Making Peices start on a board game

sorry about the last one ill not do that again. k, I'm not too sure on how to make my pieces to my board game start right when i click run, whats the best thing i can do?
Sponsor
Sponsor
Sponsor
sponsor
Hikaru79




PostPosted: Sun Jan 09, 2005 11:54 pm   Post subject: (No subject)

Well, a better job on having a descriptive topic Smile But I'm still not quite clear about your question. So, you have a game board, and you want the pieces to start in your default positions?

Well, one approach would be to have a 2-dimensional array that logically represents the board, and the value of the index represents whether that square is black/white/blank. Then simply go through the array and draw each square. This approach has the added benefit that, when you move a piece, you can re-assign and re-draw only two elements of the array.

I hope I ineterpreted your question correctly Smile
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  [ 2 Posts ]
Jump to:   


Style:  
Search: