UPDATE: LEGO Mindstorms NXT Tic-Tac-Toe Robot

PDF24    Send article as PDF   
LEGO Mindstorms NXT TicTacToe (Noughts & Crosses) Playing Robot was programmed with NXC, using Daniele Benedettelli’s ‘TicTacToe AI’ Code. It uses a Hitechnic Colour Sensor to detect the coloured balls placed on the playing board. The game has 3 difficulty levels starting with ‘Novice’ that places balls at random. Next is ‘Normal’, followed by the almost impossible ‘Expert’ level.

LEGO Mindstorms NXT TicTacToe (Naughts & Crosses) Playing Robot

I’ve made a new HD Video of the LEGO NXT TicTacToe Robot in action, which can be seen below. I have also posted my modified NXC Tic-Tac-Toe Mechanincal Control Source Code for the robot as well. Please note, that the “ttt_ai.nxc” code require to compile the listed code, is copyrighted to Daniele Benedettelli, and you will need to purchase his ‘Lego Mindstorms NXT: Thinking Robots‘ Book to gain access to the Code. I highly recommend this book of Daniele’s which is worth it just for the excellent tutor value the source code provides.

LEGO NXT Tic-Tac-Toe Robot’s NXC Code listing:

 

Need-More-Bricks

CODE Downloads

Download the listed NXC Code: TicTacToeBot.zip 3.1Kb
Download RSO Sound Files used: TicTacToeSounds.zip 66.2Kb

 

Need-More-Bricks

Previous Post

Lego NXT Controlled Pneumatic Switch

Controlling a Technics Pneumatic Switch with the Mindsensor™ NXT-Servo Interface and a 9g R.C. Servo. I've been playing around with LeJOS, Java for the NXT and my Lego™ NXT Sensor and Controller ... Read more

Next Post

Create Mindstorms NXT Speech Sound Files

Give your LEGO Mindstorms NXT Robots a Voice, by creating New LEGO Mindstorms NXT Sound Files for them! This process is very easy, thanks to some Freeware Audio Editing software ... Read more

Short URL: http://tinyurl.com/jggbc89

Leave a Reply

Your email address will not be published. Required fields are marked *



Do NOT follow this link or you will be banned from the site!
error: Content is protected !!