ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tic Tac Toe Coding Challenge

Message 181 of 183
(2,620 Views)

Just saw this today on one of my favourite webcomics:

 

http://www.xkcd.com/832/

 

Shane

0 Kudos
Message 182 of 183
(2,142 Views)

To wrap this all up, some of the work here got distilled into a fully playable game with adjustable strength, autoplay, hint system, and realtime perfect evaluation of any position. There is even a puzzle mode with difficult problem positions.

 

Have a look at the following link:

 

A full featured 4x4 Tic Tac Toe Game

 

 

The image shows an example game with both sides set to manual and hints enabled. X has to move and can win by playing the upper left corner. A move near the center will lose, and a move on the other corners will keep the game tied under optimal play. With hints disabled, all empty fields are white (and the player is in the dark).

0 Kudos
Message 183 of 183
(2,063 Views)