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

14395 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

Display Source Code (.h)

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

TicTacToe - OLED version

arduino

This is the sketch for the OLED display version.

Downloadable files

Schematics for the OLED version (no resistors)

This is the schematics version that uses the Arduino internal pullup resistors

Schematics for the OLED version (no resistors)

Schematics for the OLED version

This is the OLED version schematics. You don't need to build it if you just want to use the Serial Monitor version. In this case, you only need to upload the appropriate sketch and play using the Serial Monitor.

Schematics for the OLED version

Schematics for the OLED version

This is the OLED version schematics. You don't need to build it if you just want to use the Serial Monitor version. In this case, you only need to upload the appropriate sketch and play using the Serial Monitor.

Schematics for the OLED version

Comments

Only logged in users can leave comments

giobbino

0 Followers

0 Projects

Table of contents

Intro

5

0