Computer Science Canada Tic Tac Toe Help (magic squares theory) |
Author: | SS2006 [ Mon May 16, 2005 4:05 pm ] |
Post subject: | Tic Tac Toe Help (magic squares theory) |
i need help here ![]() *this is the magic squares way, where you need a total of 15 to win across or vertically, I didnt rmeove the numbers from the magic squraes just yet, so youll see them in the caption still im trying to get this tic tac toe to work, im 60% there, but now im clueless probs: in 2 player mode, i get the O's and X's tow ork, and the computer cna identify 3 X's in a row as a win or 3 O's in a row as a win, but anything more then that, itll lose count, because im using magic squres rule, so i just put if total =15, if any othe rocmbianation is used before I get 3 in a row it wont catch it obvously. And in 1 playe rmode (which you can access by going to File, Game Options, 1 player) I relaly need help here I cant get the computer to outup a "O" as soon as I press an X, i have to click again for it tput the O, i have it progrmamed so it immediatley puts a O in the middle, now I need to giv eit A.I. so its unbeatable, i dotn want to change my design or approach cause ive been workig on it for a long time thanks ![]() if you can solve this for me, do provide a paypal link for me, I'd gladly donate here are the files Project: http://www.ripway.com/members/getfile.asp?file=\2005-4\285041\tic%2EVbp Form1(2 players) http://www.ripway.com/members/getfile.asp?file=\2005-4\285041\tic%2EFrm Form2(1 player) http://www.ripway.com/members/getfile.asp?file=\2005-4\285041\Form2%2Efrm thanks ![]() |
Author: | SS2006 [ Mon May 16, 2005 4:09 pm ] |
Post subject: | |
i forgot to add that this is in VB4 but it should open in 6 thanks |
Author: | SS2006 [ Mon May 16, 2005 6:03 pm ] |
Post subject: | |
UPDATE: got 2 players fully working ![]() now just need to get the 1player working (with magic numbers) |
Author: | Maverick [ Tue May 17, 2005 4:52 pm ] |
Post subject: | |
FOr the X's and O's things, Just use Single Click as X's and DblClick as O's |
Author: | SS2006 [ Tue May 17, 2005 7:26 pm ] |
Post subject: | |
i need to get the 1 player working (vs. computer) i have eveyrthign else working remember im using magic squares theory |
Author: | GlobeTrotter [ Tue May 17, 2005 8:05 pm ] |
Post subject: | |
Maverick wrote: FOr the X's and O's things,
Just use Single Click as X's and DblClick as O's That made no sense at all. First of all, in his version there are no X's and O's. Secondly, single and double click would be completely unnecessary for regular tic-tac-toe. |
Author: | SS2006 [ Wed May 18, 2005 7:13 am ] |
Post subject: | |
so anyone ![]() i jus tupdated the files there new now the 2 players is iworking thanks |
Author: | SS2006 [ Sat May 21, 2005 10:40 pm ] |
Post subject: | |
someone ![]() |
Author: | GlobeTrotter [ Sun May 22, 2005 11:50 am ] |
Post subject: | |
It says I need to login to download, just attach it to your post through the forum. |
Author: | SS2006 [ Sun May 22, 2005 10:33 pm ] |
Post subject: | |
done thx globtrotter ![]() |
Author: | Maverick [ Tue May 24, 2005 8:24 am ] |
Post subject: | |
GlobeTrotter wrote: Maverick wrote: FOr the X's and O's things,
Just use Single Click as X's and DblClick as O's Secondly, single and double click would be completely unnecessary for regular tic-tac-toe. What are you talking about? Single and Double click is the easiest way to make a tic tac toe game. |
Author: | SS2006 [ Tue May 31, 2005 11:50 am ] |
Post subject: | |
what snew? |