Lego NXT: Tic-Tac-Toe Playing Robot
LEGO Mindstorms NXT Tic-Tac-Toe (Naughts & Crosses) Playing Robot was programmed with NXC, using Daniele Benedettelli‘s ‘AI‘ Code. The Robot uses a Hitechnic Colour Sensor to detect the coloured balls placed on the Game Board. The robot’s ability to detect the correct colour of the balls, is far superior when using the Hitechnic Colour Sensor than trying to use the standard LEGO Light Sensor.

Lego NXT: Tic-Tac-Toe Playing Robot
The game of Tic-Tac-Toe is also known as noughts-and-crosses, hugs-and-kisses and by many other names around the globe. The game requires two players, ‘O’ and ‘X’, alternatively drawn on a 3×3 Matrix or Grid. The player who manages to place three of their marks in a horizontal, vertical or diagonal row wins the game.
The game has 3 difficulty levels starting with ‘Novice’ that places balls at random. Next is ‘Normal’, followed by the almost impossible ‘Expert’ level. Once you’ve played the game a few times, you will realise that when played at an optimal skill level by both you and your opponent , the game always ends in a Draw!

Lego NXT: Tic-Tac-Toe Playing Robot
The Tic-tac-Toe Playing Robot uses one motor to rotate the Game Board, another to move the Arm carrying the Ball Hopper linearly over the Game Board, and a third drops the Ball from the Ball Hopper onto the Game Board.
The Rotating Game Board has nine spaces in a 3×3 matrix to place the balls on different colours in. The Blue Balls are used by the Robot, with the Yellow one for the human opponent.

Lego NXT: Tic-Tac-Toe Playing Robot
The Robot can reach all the cells in the 3×3 matrix by rotating Game Board through 45 degree increments and by sliding the Ball Hopper backwards-&-forwards. The Hitechnic Colour Sensor on the end of the Ball Hopper detects where the human opponent has placed a Yellow Ball. The Robot drops it’s Blue Balls from the shoot via a double-action slider mechanism that only allows on Ball at a time to drop.

Lego NXT: Tic-Tac-Toe Playing Robot
Combinatorial Game Theory:
See Wikipedia for details of Combinatorial Game Theory and links to further relevant information…..
Rechargeable 2.4Ghz Wireless Camera
I brought this Hamy, 2.4Ghz Wireless 1/3 Sony CCD Rechargeable Camera to use with my Robots. It has a Sensitivity: of 0.5 Lux at F1.2, which makes it great for ... Read more
New NXTBee Radio Modems for the NXT
A pair of NXTBee Radio Modems for use with my LEGO Mindstorms Robots, arrived late this afternoon from Dexter Industries in the United States. I've been waiting for a while ... Read more
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Leave a Reply