Tic Tac Toe Game Using Arduino

by AmCoder in Circuits > Arduino

5575 Views, 3 Favorites, 0 Comments

Tic Tac Toe Game Using Arduino

temp_-1645966850.jpg
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.

Components Required

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

Circuit Description

temp_-627040054.jpg
-- 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 !! ;-)

Some Notes on the Game Play

temp_-991095569.jpg

-- 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

Downloads