Tic Tac Toe

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Tic Tac Toe

Post by chili » March 13th, 2012, 3:37 pm

So this program uses two different AI algorithms for the 'X' player and the 'O' player. One algorithm is just a random selection from among the unoccupied spaces, and the other follows some simple heuristic rules. Try to guess which is which. :)
Attachments
Toe.zip
(18.22 KiB) Downloaded 585 times
Chili

Alex MBOULA
Posts: 4
Joined: March 19th, 2012, 12:01 am
Contact:

Re: Tic Tac Toe

Post by Alex MBOULA » March 19th, 2012, 12:47 am

Hi dear chili, i'm a new comer in your very good website,i'm french and my english is very poor. i have a problem and i need a help.

i have a school project to make a game with Directx 11 and framework DXUT and i'm at the base student in network computing. this project is the way for my admission in M2 Administration and Security in Network who is my ability. Please can you help me ???
Thank you :)

User avatar
cookiez
Posts: 12
Joined: May 3rd, 2012, 6:16 pm

Re: Tic Tac Toe

Post by cookiez » May 5th, 2012, 12:27 pm

I'd guess the 'O' player follows the heuristic rules. :)

User avatar
timidek
Posts: 2
Joined: September 3rd, 2013, 3:33 am

Re: Tic Tac Toe

Post by timidek » September 20th, 2013, 12:59 am

Hey guys, I tried to find the code for Tic Tac Toe, but ended up only with the .exe file which I don`t need. I would be very pleased if you (chili maybe) could post a full code of the lesson 12 homework (the AI especially).

Thanks in advance.

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Tic Tac Toe

Post by chili » September 20th, 2013, 3:07 am

The AI for the TicTacToe game can actually be found in the most recent intermediate lesson download.
Chili

User avatar
timidek
Posts: 2
Joined: September 3rd, 2013, 3:33 am

Re: Tic Tac Toe

Post by timidek » September 20th, 2013, 5:27 am

When my children will go through the chili`s tutorials and bump onto the lesson 12 problem, I want them to go back on track as fast as possible, so I`m going to post a direct link to the zip file with AI code (just for them and maybe a few derailed young padawans).

http://www.planetchili.net/forum/downlo ... php?id=968

User avatar
Multibyte
Posts: 42
Joined: September 17th, 2013, 5:55 am
Location: USA

Re: Tic Tac Toe

Post by Multibyte » September 21st, 2013, 5:43 pm

I will resist the temptation and try to do the program myself. :)

V1lena221
Posts: 5
Joined: November 3rd, 2013, 7:50 am

Re: Tic Tac Toe

Post by V1lena221 » November 3rd, 2013, 8:31 am

chili wrote:So this program uses two different AI algorithms for the 'X' player and the 'O' player. One algorithm is just a random selection from among the unoccupied spaces, and the other follows some simple heuristic rules. Try to guess which is which. :)

OMG Avira identified as a virus zip fail.
Show me, please, the code itself AT the forum. Very interesting to see it.

'm sorry online translator makes that may )

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: Tic Tac Toe

Post by LuX » November 3rd, 2013, 9:31 am

No viruses, I promise ;- )
Nah, but in all seriousness there are no viruses in the files released by chili, and it's safe to assume that neither in anyone else's. Just ignore the alert.
ʕ •ᴥ•ʔ

bonjovifan
Posts: 51
Joined: September 3rd, 2013, 7:58 pm

Re: Tic Tac Toe

Post by bonjovifan » November 30th, 2013, 11:01 pm

I downloaded the intermediate lesson for the AI interface for the tic tac toe game and tried to understand it, but can't seem to manage. Is there an explanation for the AI moves that's easy to follow?

Post Reply