Try my tic-tac-toe game out. Includes source. Please tell me what I can do to make the game better
Try my tic-tac-toe game out. Includes source. Please tell me what I can do to make the game better
Last edited by abrege; 12-10-2002 at 09:35 PM.
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
ah
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
Halo,
Making it better would of course be adding a little bit of AI, like blocking a move and making a winning move when it's available ^>^.
yep.. i agree with Nutshell. it's very easy to win. also, when i didn't win, and all the spaces got taken, it froze up just when i made my last move, and i had to close it... then when i tried to go a place where there was already a mark, my whole computer froze might want to check if there's a mark on a given spot before marking it...
ouch I'll fix those problems and attempt to make some AI!
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
Now it shouldn't freeze up! But I haven't figured out a way to tell if it's a cat's game
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
Strange. I have been playing with some AI for Tic Tac Toe.
This is a MS Windows based app.
Let me know if you find any bugs
Let me know if you can beat it.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Nope, i couldn't beat it.
BUt anywayz i believe that the nature of Tic Tac TOe is too simple, even human players come to a draw very frequently.
Go download my game called Dynamic Toe at my site (follow the link in my sig) to see a version of Tic-Tac-Toe that is more dynamic. It allows you to set the grid to any size you want. The AI isn't all that great, because it's slightly more difficult to have it adapt on all situations, plus I didn't spend much time on the game at all. Anyways, the game should be able to give you some help on your TTT game. Good luck fixing up your game.
Ha, i've beaten you're AI sensless
Love Tic-Tac-Toe
PS: You should mask the mouse cursor it overwrites some things
^
Novacain's AI that is
PS2: Beaten abrege's AI too
Last edited by Travis Dane; 12-11-2002 at 10:28 AM.
Travis Dane
Could you;
Please post a pic of your winning board (so I can see where the AI fails)
and if possible one of the mouse error.
What operating system are you using?
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Don't have a place right now where i can upload it but il try
to explian in plain text:
if whe assume that the layout of the field is this:
123
456
789
Then it happend like this:
Me: 1
AI: 5
Me: 9
AI: 7
Me: 3
AI: 6
Me: 2
I win
And for the mouse, the mouse bitmap is a white square with a
cross or circle,but the white where the cross or circle is painted
over isnt masked
Here is my console based tictactoe game I made a couple of months ago as a precursor to my connect four and checkers games. As far as I know its unbeatable, but please let me know if you can do it!
Yeah, its unbeatable, isnt so hard is it?
Thanks Travis Dane, will try to improve its game.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill