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

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




PostPosted: Fri Jan 07, 2005 12:18 pm   Post subject: help :)

k, say you were making checkers...you know how the pieces start off on the board how do you do that?
Sponsor
Sponsor
Sponsor
sponsor
MihaiG




PostPosted: Fri Jan 07, 2005 12:47 pm   Post subject: (No subject)

use a map like

0=space
1=red
2=black

0 1 0 1 0 1 0 1
1 0 1 0 1 0 1 0
0 1 0 1 0 1 0 1
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 2 0 2 0 2 0 2
2 0 2 0 2 0 2 0
0 2 0 2 0 2 0 2
Paul




PostPosted: Fri Jan 07, 2005 3:18 pm   Post subject: (No subject)

I suppose you're gonna use your mouse to move it too. Well, I suggest using sprites actually, if u want to do it easily, use 3.11. My friend made chess for his FP, he said it was alot easier to use sprites for it.
Cervantes




PostPosted: Fri Jan 07, 2005 5:20 pm   Post subject: (No subject)

ELCOMANDANTE wrote:
use a map like

0=space
1=red
2=black

0 1 0 1 0 1 0 1
1 0 1 0 1 0 1 0
0 1 0 1 0 1 0 1
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 2 0 2 0 2 0 2
2 0 2 0 2 0 2 0
0 2 0 2 0 2 0 2

I wouldn't recommend it. I would only use a text map like that for background's to RPGs or things like that, where you want to make an interpreter that will work with a bunch of text maps. But, for checkers, you don't have different "levels". There is one starting position and that is all. Thus, it would probably be easier to simply do some for loop work and input the positions of the pieces from within Turing. Plus, it's one less file you have to include with the program Smile

EDIT: Oh yeah, don't forget to use a descriptive title
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: