Computer Science Canada Network Tic-tac-Toe |
Author: | maiku [ Sun Apr 23, 2006 1:22 am ] | ||
Post subject: | Network Tic-tac-Toe | ||
I'm a TOTAL programming noob..... I'm only in grade 10, in computer info and sci class, and the only teacher who could have probably helped me left the school! I got bored and tried to make tic-tac-toe for 2 computers. The only error is whenever the program sends an array over the network.....Here's my code
sorry, but I don't have any comments because I don't really know what about half of the commands are doing, I just know how to use them THNX |
Author: | Tony [ Sun Apr 23, 2006 2:37 am ] |
Post subject: | |
maiku wrote: I don't really know what about half of the commands are doing, I just know how to use them
if you're interested in getting a better understanding on how something works and how to better use certain features, we have plenty of information in [Turing Tutorials]. Read up on the Turing Walkthrough to cover everything you need to know and to get ahead ![]() |
Author: | maiku [ Sun Apr 23, 2006 10:26 am ] |
Post subject: | |
thnx! ![]() you didnt happen to figure out what the prolem is, did you? Ive been trying to figure it out for about a week.....it is angering me ![]() at first, I thought it was screwing up because of my for statements, but then we actually learned arrays in class (im ahead of the class) and now i dont know why its not working, do i need to clear the variable values before getting new values using "get : stream,var"??? |
Author: | Tony [ Sun Apr 23, 2006 12:55 pm ] | ||
Post subject: | |||
my guess would be that
you check if a character is available, and then try to read 9 integers. Since reading from net buffer is faster than actually transfering all that data over, your program is likely trying to read something that is not yet there. |
Author: | maiku [ Sun Apr 23, 2006 5:08 pm ] |
Post subject: | |
lol.....yeah i figured as much, but i dont know what Net command to use to read an integer. I really can't figure it out...... I'll try rewriting it using strings instead of integers, but its will take a LOT more lines If you figure out what command, post it cuz im a noob THNX!!!!! ![]() |
Author: | maiku [ Fri Apr 28, 2006 11:00 am ] | ||
Post subject: | Finished | ||
I got it working, thanks for the help!!! Here it is, if you ever find a need to use it.
I still haven't added any comments, but I think its pretty obvious how it works. (the thing at the end is my Tag) |
Author: | maiku [ Sat May 20, 2006 11:28 pm ] |
Post subject: | |
i don't even know why i cared to put out the code, no one will ever use it ![]() |
Author: | Anonymous [ Sat May 27, 2006 10:08 pm ] |
Post subject: | |
It's the first network game I've ever seen on these forums. I would use it, except for the fact at school, where everyone uses Turing at once, the Windows Firewall blocks network connections. I asked the teacher to ask the computer technician to allow Turing to access computers accross the network, but I don't think he will. If it works without many bugs, it's probly the best game in my opinion on these forums, unless you can point me to a better net game. |
Author: | maiku [ Sat May 27, 2006 10:38 pm ] |
Post subject: | No bugs |
I can happily say "No bugs!" And there can't be an input problem, because the only input is with the mouse There may be a better network program out there, like the several chat programs that have been posted. And what school do you go to? At my school, the firewall doesn't block turing..... me and my friend play Tic-Tac-Toe all the time But I'm glad someone finally posted something LOL If you ever get it working on the network, have fun! |
Author: | Anonymous [ Sat May 27, 2006 10:45 pm ] |
Post subject: | |
Well the school (KLCVI), only blocks Turing on the Windows XP computers, ironicly in my Programming class. Maybe the Firewall see's Turing as an unrequested script or something of that matter... But if I wanted to play your game, I could use the downstairs computers in the Library, but I don't think my friend's would want to. I don't even like those computers. Stupid out of date windows ME pieces of crap. |
Author: | maiku [ Sat May 27, 2006 11:12 pm ] |
Post subject: | |
I find that REALLY funny.... At my school, the XPs freeze whenever you try to run turing, and the old 98s or NT's run turing smooth as silk But yeah, Tic-Tac-Toe gets boring really quickly Although, try playing my blackjack game that i made, i have it posted here: http://www.compsci.ca/v2/viewtopic.php?t=12426&highlight=blackjack Enjoy! oh, and press any key to deal again, and run the bank balance reset program if you run out of money |
Author: | Clayton [ Sun May 28, 2006 9:35 pm ] |
Post subject: | |
ME's,XP's i wish i had them, the best my school has are 98's running P2's, so yea, not a bad tictactoe game, however some of the code could have been more compartmentalized but whatever, good job ![]() |
Author: | maiku [ Mon Nov 20, 2006 10:21 pm ] |
Post subject: | DONE |
OK, I know its been a while but I finally got it how i want it to work. Here it is. And if anyone has Hamachi, they're welcome to play against me if I can figure out how to work Hamachi. My network is Mootatta and the password is moo. message me here, on msn (this_email_is_fake@msn.com) or yahoo (guitarist_guy401@yahoo.com) Hope to play against y'all. |