Easiest TicTacToe (with and without an OLED display)

An easy TicTacToe project to start with Arduino. Fully self-describing code, easy to assemble, with a "serial monitor only" version too.

Apr 2, 2022

6972 views

5 respects

Components and supplies

2

Pushbutton Switch, Momentary

1

Arduino Nano R3

1

i2c 0.96" OLED display (SSD1306)

2

Through Hole Resistor, 100 kohm

Apps and platforms

1

Arduino IDE

Project description

Code

Display Source Code (.cpp)

arduino

download and add these two files to the sketch folder if you display doesn't work.

TicTacToe - OLED version (no resistors)

arduino

This uses the Arduino internal pullup resistors

Display Source Code (.h)

arduino

download and add these two files to the sketch folder if you display doesn't work.

TicTacToe - OLED version

arduino

This is the sketch for the OLED display version.

TicTacToe - Serial Monitor version

arduino

This sketch requires the Arduino board only. You can play using the Arduino IDE serial monitor

Display Source Code (.cpp)

arduino

download and add these two files to the sketch folder if you display doesn't work.

TicTacToe - Serial Monitor version

arduino

This sketch requires the Arduino board only. You can play using the Arduino IDE serial monitor