Computer Science Canada Checkers game |
| Author: | jam jam [ Mon Jan 16, 2006 10:34 pm ] |
| Post subject: | Checkers game |
I need to make a stupid checker game for computer science and i have no idea how to do that! The only part i know how to make is the board and i'm trying to make the pieces...but not really working very well! Does anyone know how to make a checker game! Please Help ME...I'm in desperate need of help now!!!! Martin says: I know I put this in just about every topic, but can you please make more descriptive titles on your posts in the future? Carry on. |
|
| Author: | MysticVegeta [ Mon Jan 16, 2006 10:36 pm ] |
| Post subject: | |
Hello. Welcome to compsci. 1) We dont do your assignments for you. 2) We would help you with any problems you are having in your code. |
|
| Author: | jam jam [ Mon Jan 16, 2006 10:44 pm ] |
| Post subject: | |
yes..i know you don't do assignments. i meant can you teach me how to move the checker pieces? Because i surely have no clue how to. Does this involve with if..then..else? and what is case of? |
|
| Author: | Delos [ Tue Jan 17, 2006 12:11 am ] |
| Post subject: | |
Moving pieces: - make variables that will describe piece's location on board - get input - change variables - redraw pieces Easy? Sure is. Confused? Check out the Tuts, especially the intro one. Additionally, post up some code so we can see what you're experimenting with. |
|
| Author: | Albrecd [ Tue Jan 17, 2006 9:20 am ] |
| Post subject: | |
You could have a boolean for each square to decide if you should draw a checker peice there. You would also need a variable to decide if it should be red or black. Then just Draw.FillOval on the square if true.[/code] |
|
| Author: | Cervantes [ Tue Jan 17, 2006 1:54 pm ] |
| Post subject: | |
It's near impossible to answer your question without knowing how much you know. Do you know arrays? 2D arrays? Records and Types? Classes? |
|