Computer Science Canada help :) |
Author: | JonnyBigBoi [ 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? |
Author: | MihaiG [ Fri Jan 07, 2005 12:47 pm ] |
Post 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 |
Author: | Paul [ Fri Jan 07, 2005 3:18 pm ] |
Post 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. |
Author: | Cervantes [ Fri Jan 07, 2005 5:20 pm ] |
Post 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 ![]() EDIT: Oh yeah, don't forget to use a descriptive title |