Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Tic Tac Toe Help (magic squares theory)
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
SS2006




PostPosted: Mon May 16, 2005 4:05 pm   Post subject: Tic Tac Toe Help (magic squares theory)

i need help here Sad

*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 Smile
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 Smile



Form2.frm
 Description:
FORM2 (1 player) WHERE I NEED HELP

Download
 Filename:  Form2.frm
 Filesize:  12.74 KB
 Downloaded:  236 Time(s)


tic.Frm
 Description:
FORM1 (2 players)

Download
 Filename:  tic.Frm
 Filesize:  15.23 KB
 Downloaded:  225 Time(s)


tic.Vbp
 Description:
PROJECT

Download
 Filename:  tic.Vbp
 Filesize:  1010 Bytes
 Downloaded:  217 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
SS2006




PostPosted: Mon May 16, 2005 4:09 pm   Post subject: (No subject)

i forgot to add that this is in VB4
but it should open in 6
thanks
SS2006




PostPosted: Mon May 16, 2005 6:03 pm   Post subject: (No subject)

UPDATE: got 2 players fully working Very Happy

now just need to get the 1player working (with magic numbers)
Maverick




PostPosted: Tue May 17, 2005 4:52 pm   Post subject: (No subject)

FOr the X's and O's things,

Just use Single Click as X's and DblClick as O's
SS2006




PostPosted: Tue May 17, 2005 7:26 pm   Post subject: (No subject)

i need to get the 1 player working (vs. computer)
i have eveyrthign else working
remember im using magic squares theory
GlobeTrotter




PostPosted: Tue May 17, 2005 8:05 pm   Post subject: (No 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.
SS2006




PostPosted: Wed May 18, 2005 7:13 am   Post subject: (No subject)

so anyone Very Happy
i jus tupdated the files
there new now
the 2 players is iworking thanks
SS2006




PostPosted: Sat May 21, 2005 10:40 pm   Post subject: (No subject)

someone Sad
Sponsor
Sponsor
Sponsor
sponsor
GlobeTrotter




PostPosted: Sun May 22, 2005 11:50 am   Post subject: (No subject)

It says I need to login to download, just attach it to your post through the forum.
SS2006




PostPosted: Sun May 22, 2005 10:33 pm   Post subject: (No subject)

done
thx globtrotter Smile
Maverick




PostPosted: Tue May 24, 2005 8:24 am   Post subject: (No 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.
SS2006




PostPosted: Tue May 31, 2005 11:50 am   Post subject: (No subject)

what snew?
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 12 Posts ]
Jump to:   


Style:  
Search: