Page 1 of 1

Tic Tac Toe Game

Posted: Mon Nov 08, 2010 2:58 pm
by TheSecretBoy
Hello Guys ,,,

i have finished today this Game from 1 week very hard coding :(

Fuetures :
- Nice Looking ;)
- Record Ur Wins
-Easy To Play !
ok this is the main Form
Image

Image

Image

and it took me 1299 Lines of Coding ( WITH PUPLIC CLASS FORM + Button1_click and .. )

Hope you like it

Re: Tic Tac Toe Game

Posted: Mon Nov 08, 2010 3:22 pm
by bisnes_niko
I worked viewtopic.php?f=70&t=3132&hilit=NSs+TTT just a day and I'm using same technique for all my games... I don't know if I can call it my little engine^^

And 1300 lines? :lol:

I would give you my NSS TTT Source, but sadly I can't find it...
But hmm... cool.


EDIT: I found a little bug:
bug.PNG

Re: Tic Tac Toe Game

Posted: Mon Nov 08, 2010 3:37 pm
by TheSecretBoy
where is the Bug ?

O - O - X
X - X - O
O - O - X

No winner so it will say Draw Game and load again

Re: Tic Tac Toe Game

Posted: Mon Nov 08, 2010 3:41 pm
by bisnes_niko
TheSecretBoy wrote:
where is the Bug ?

O - O - X
X - X - O
O - O - X

No winner so it will say Draw Game and load again
I'm sorry, but the bug is that It didn't load again...

There's a simple fix; Maybe you should add a timer to check if all buttons are disabled... that would mean a draw. Just a simple way, so no need to put much code.

Re: Tic Tac Toe Game

Posted: Mon Nov 08, 2010 3:43 pm
by TheSecretBoy
does this Bug Comes every time or one time +
did you see Msgbox("draw") ?

Re: Tic Tac Toe Game

Posted: Mon Nov 08, 2010 3:45 pm
by bisnes_niko
TheSecretBoy wrote:
does this Bug Comes every time or one time +
did you see Msgbox("draw") ?
Yes I played my first game which was draw ( random presses... ) Then I played another time and it was draw (as in the picture) but I didn't get a messagebox or any information that it was a win or draw... It didn't even load.

Re: Tic Tac Toe Game

Posted: Mon Nov 08, 2010 3:47 pm
by TheSecretBoy
maybe i forgot to put the load code in That button
do you remeber what the last button you press :S
so i can check!

Re: Tic Tac Toe Game

Posted: Mon Nov 08, 2010 3:49 pm
by bisnes_niko
TheSecretBoy wrote:
maybe i forgot to put the load code in That button
do you remeber what the last button you press :S
so i can check!
No I don't remember, as I did it random pressesly lol...

Simple solution: Just check all the 9 buttons

Re: Tic Tac Toe Game

Posted: Mon Nov 08, 2010 3:57 pm
by TheSecretBoy
Sorry i check them very well and i play 2000000000000000 times no Bug lol
maybe from the fast choosing .. Cuz yesterday i was Playing Random and it bug ^,^