flat assembler
Message board for the users of flat assembler.

Index > Windows > TicTacToe

Author
Thread Post new topic Reply to topic
Walter



Joined: 26 Jan 2013
Posts: 160
Walter 23 Jan 2026, 06:33
Image

TicTacToe started as a random move algorithm written in C for fun. After some thought I decided to see how AI and I might work with this. Asm file is result of my first attempts at using this stuff.

If nothing else, let the neighborhood kid try it on level "Hard" and tell 'em after a win, they get a prize!


Description:
Download
Filename: TicTacToe.zip
Filesize: 33.38 KB
Downloaded: 27 Time(s)

Post 23 Jan 2026, 06:33
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20843
Location: In your JS exploiting you and your system
revolution 23 Jan 2026, 06:53
Talking about AI and Tic-Tac-Toe at the same time reminds me of War Games and how Tic-Tac-Toe was used to teach the AI about no-win scenarios.
Post 23 Jan 2026, 06:53
View user's profile Send private message Visit poster's website Reply with quote
Picnic



Joined: 05 May 2007
Posts: 1451
Location: Piraeus, Greece
Picnic 25 Jan 2026, 23:31
Walter wrote:
TicTacToe started as a random move algorithm written in C for fun. After some thought I decided to see how AI and I might work with this. Asm file is result of my first attempts at using this stuff.

If nothing else, let the neighborhood kid try it on level "Hard" and tell 'em after a win, they get a prize!


I didn’t check the code, but the visuals are very clean and nice Walter, just right for a tic-tac-toe game. The screenshot is from my Windows 11 PC.

revolution wrote:
Talking about AI and Tic-Tac-Toe at the same time reminds me of War Games and how Tic-Tac-Toe was used to teach the AI about no-win scenarios.


Strange game, the only winning move is not to play.

I remember the school’s network access code was PENCIL, and the missile launch code was CPE1704TKS. I’ve watched it so many times.
Post 25 Jan 2026, 23:31
View user's profile Send private message Visit poster's website Reply with quote
Walter



Joined: 26 Jan 2013
Posts: 160
Walter 26 Jan 2026, 05:31
Picnic thanks for the nice comment! The game has gone over well here. Kids these days are so accustomed to phones and tablets that using a mouse seems unusual. So I changed the game to have a sizeable window and put it on a PC with a touch screen.

I believe this is clip of War Games that you and Rev refer to.

HOW ABOUT A NICE GAME OF CHESS? (2:59)

https://www.youtube.com/watch?v=MpmGXeAtWUw
Post 26 Jan 2026, 05:31
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20843
Location: In your JS exploiting you and your system
revolution 26 Jan 2026, 06:12
Walter wrote:
I believe this is clip of War Games that you and Rev refer to.

HOW ABOUT A NICE GAME OF CHESS? (2:59)
IIRC it was a few minutes before that that the professor tasked the computer to play Tic-Tac-Toe against itself and it learns there is no winner. Then comes the scene in the clip.

Computer AI back in 1983 was so much smarter than the AI we have now. Razz
Post 26 Jan 2026, 06:12
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2026, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.