Computer Science Canada help with tic tac toe program |
Author: | littenburg [ Tue Jan 22, 2008 6:20 pm ] | ||
Post subject: | help with tic tac toe program | ||
hello, i have made a new tic tac toe program, and i need it to work, can someone please help finishing the program?
|
Author: | Nick [ Tue Jan 22, 2008 6:22 pm ] |
Post subject: | RE:help with tic tac toe program |
if you took the time to color it green you couldn't just have [[/]code] and [[i]/code] or [syntax="turing"]and[/syntax]? |
Author: | littenburg [ Tue Jan 22, 2008 6:24 pm ] |
Post subject: | RE:help with tic tac toe program |
yeah, i probably could have, but im asking for help, not some random coments like that |
Author: | Nick [ Tue Jan 22, 2008 6:26 pm ] |
Post subject: | RE:help with tic tac toe program |
I am helping see if I didn't wanna take the time to look at it because no code tags how many other people will? also can a mod edit my post fixing the [i] |
Author: | littenburg [ Tue Jan 22, 2008 6:28 pm ] |
Post subject: | RE:help with tic tac toe program |
well, thank you for the help, im sorry i dont understand, and what about this [i]? |
Author: | Clayton [ Tue Jan 22, 2008 6:32 pm ] |
Post subject: | RE:help with tic tac toe program |
The first thing I'm seeing here is a random initialization of all of your variables to -999. I must ask... why? Also, look into arrays in the Turing Walkthrough, as they will make your code much more readable, and help you in the long run dramatically. Also... never, ever, ever, make some wait through a loading screen that's doing absolutely nothing. In your case, you're making the user wait 6 1/2 seconds of nothing. This is bad. Instead, the better thing to do would be to have some sort of escape key for the user to press once they are ready to move on. As a side note. We (the mods) appreciate other people trying to enlighten others to the rules, however, let's just stop for now okay? The mods are perfectly able to let others know of the rules. This is directed toward everyone, and should in no way be taken as a direct comment to someone. |
Author: | littenburg [ Tue Jan 22, 2008 8:02 pm ] |
Post subject: | RE:help with tic tac toe program |
thankyou for your help, i appreciate it, i put the loading thing there, because the teacher was give 10% out for making the program look exciting and interesting, that just made it look cool...and for the arrays, the teacher said we could use arrays, but it would make it more confusing in the future, so i didnt even bother, but thankyou for your help, i appreciate it, anymore tips? |
Author: | Myst [ Tue Jan 22, 2008 9:49 pm ] |
Post subject: | RE:help with tic tac toe program |
man your tic tack toe game is pretty good ^_^ i didn't make mine go against a computer -_-" just a 2 player game. Still pretty good i suppose. I'll show it to you once i hand it in to my teacher. be warned 700 + lines of coding XD |
Author: | Clayton [ Tue Jan 22, 2008 10:28 pm ] |
Post subject: | RE:help with tic tac toe program |
Umm... littenburg wrote: the teacher said we could use arrays, but it would make it more confusing in the future, so i didnt even bother
Your teacher told you this? If so... I've lost all faith in the educational system. They will make your program infinitely easier to read and understand. This effect becomes more apparent as you write longer, more complex programs. |
Author: | Gooie [ Tue Jan 22, 2008 11:37 pm ] |
Post subject: | Re: RE:help with tic tac toe program |
Clayton @ January 22nd, 10:28 pm wrote: Umm...
littenburg wrote: the teacher said we could use arrays, but it would make it more confusing in the future, so i didnt even bother
Your teacher told you this? If so... I've lost all faith in the educational system. They will make your program infinitely easier to read and understand. This effect becomes more apparent as you write longer, more complex programs. My teacher said the same thing at the beginning of the semester... It is sad isn't it. The problem is that they teach to the lowest common denominator. |
Author: | ericfourfour [ Tue Jan 22, 2008 11:46 pm ] |
Post subject: | RE:help with tic tac toe program |
I doubt that is what the teacher meant Clayton. I don't think a school board would hire a retard. littenburg was probably exaggerating. I notice a lot of people claim to be better at programming than their teachers. |
Author: | Sean [ Wed Jan 23, 2008 8:21 am ] |
Post subject: | Re: help with tic tac toe program |
Our teacher Gooie, did not say not to use Arrays, just that we were behind in class and would not have the chance to get to arrays. She recommened them for a lot of program ideas that I had, and we would of learned how to properly utilize them if we had the time and commitment that we gave from everyone else. |
Author: | littenburg [ Wed Jan 23, 2008 2:33 pm ] |
Post subject: | RE:help with tic tac toe program |
he did say that they would make it harder, in this project, sorry, i should have made it more clear |