Tic Tac Toe Game Using Arduino

3,477

3

2

About: Mitu Raj -- Just a Hobbyst and Learner -- Chip Designer -- Software Developer -- Physics and Mathematics Enthusiast

Tic Tac Toe is a popular two player paper game in which first player to complete a row or column or diagonal of 'X' or 'O' wins . If nobody couldn't achieve the feat , then the match is drawn.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Components Required

1) Arduino Uno/ Nano
2) 20x4 LCD screen
3) 9 on/off switches
4) 9 resistors - 10K

Step 2: Circuit Description

-- The 9 on/off switches are connected to D2-D10 pins of the arduino as in the circuit diagram.
-- The 20x4 LCD display is then connected to the arduino . I have used the analog pins of the arduino (14-19)
-- Upload the attached file to the arduino.
-- That's all folks !! ;-)

Step 3: Some Notes on the Game Play

-- Each switch represent a cell of the Tictac toe board.
switch no. 1 -> row 1 column 1

2 -> row 1 column 2

3 -> row 1 column 3

4 -> row 2 column 1

5 -> row 2 column 2 and so on....

Total 9 cells and 9 switches .

-- First player to play gets 'X' and the second player gets 'O' . The players play in alternating manner.

-- A switch once turned on is ON ! There is no undo or no use in switching it off.

-- Once you finish the game , you have to turn off all the 9 switches to start new game .

-- The game goes on accumulating the scoreboard accordingly , until you click the reset on the arduino.

Designed By

Mitu

Step 4:

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    2 Discussions

    0
    None
    mazamm

    2 years ago

    Is there any video available for this?

    1 reply