Posts with «tic-tac-toe» label

2024 Business Card Contest: A Game for Two

If you want to make a good first impression on someone, it seems like the longer you can keep them talking, the better. After all, if they want to keep talking, that’s a pretty good sign that even if you don’t become business partners, you might end up friends. What better way to make an acquaintance than over a friendly game of tic-tac-toe?

This one will probably take them by surprise, being a 4×4 matrix rather than the usual 3×3, but that just makes it more interesting. The front of the card has all the usual details, and the back is a field of LEDs and micro switches. Instead of using X and O, [Edison Science Corner] is using colors — green for player one, and red for player two. Since playing requires the taking of turns, the microcontroller lights up green and red with alternating single-button presses.

Speaking of, the brains of this operation is an ATMega328P-AU programmed with Arduino. If you’d like to make your own tic-tac-toe business card, the schematic, BOM, and code are all available. Be sure to check out the build and demo video after the break.

TICO Robot Plays Tic-Tac-Toe by Drawing on a Tiny Whiteboard

Tic-tac-toe (or “Noughts and Crosses”) is a game simple enough to implement in any computer system: indeed it’s often used in beginner’s programming courses. A more challenging project, and arguably more interesting and useful, is to make some kind of hardware that can play it in real life. [mircemk] built a simple yet elegant machine that can play tic-tac-toe against a human player in a way that looks quite similar to the way humans play against one another: by drawing.

The robot’s design and programming were developed at PlayRobotics, who named the project TICO. The mechanical parts are available as STL files, to be printed by any 3D printer, and a comprehensive manual explains how to assemble and program the whole thing. Since it’s all open source, anyone can build it from scratch and modify it to their liking. The pictures show the original design by PlayRobotics, while the video (embedded after the break) shows [mircemk]’s version, which includes a wooden frame that gives it a bit more presence.


The electronic components are an Arduino with an OLED screen and a buzzer, plus three servos to operate the mechanical parts. Lacking a 3D printer, [mircemk] cut the plastic parts from a 3 mm sheet of PVC, which seems to have worked surprisingly well. The game board consists of a small whiteboard on which the robot and the human can draw their O’s and X’s.

The mechanical structure of the robot looks a bit like a tiny human using both arms to draw with an enormous marker. When starting a game, the robot clears the whiteboard using a little eraser, then draws the standard 3×3 grid and makes its first move. The human then draws their move and uses a remote control to tell the robot what they did (no machine vision here), after which the game continues until there is either a winner or the game results in a draw.

Although it looks like the program’s playing strategy may need some fine-tuning, the mechanical part is well-designed and the arms’ motions are quick and steady. We love the celebratory “cheering” at the end of a game, which TICO does whether it won or not.

The robot’s basic design is inspired by the Plotclock, which uses a similar setup to draw the time. We’ve seen other tic-tac-toe ‘bots before, as well as some clever electronic implementations of the game.

Hack a Day 28 Sep 00:00

Tic Tac Arduintoe Moves the Game To 4×4

We know you’re out there spending a lot more time with your loved ones, and appreciate that you may be running out of ways to keep everyone entertained. [Mukesh] dropped us a tip because he has the antidote to boredom — a new twist on that old chestnut, Tic Tac Toe.

Instead of the usual 3×3 configuration, [Mukesh] made the grid 4×4 so the game would be more engaging. Game play is otherwise the same — this Tic Tac Toe still results in a lot of draws, but they take longer and you can’t see them coming a mile away. What’s even more engaging is that you get to push clicky buttons that light up, and don’t have to draw a grid before every game.

Under the hood is an Arduino Uno that controls 16 push buttons and their corresponding RGB LEDs. Whoever goes first is blue, and player two gets pink. If you win, your color floods the board for a brief victory animation. If the game is a tie, the board turns red. We really like the printed two-piece buttons that house the LEDs and actuate the push buttons while keeping the two separate. Toe your way past the break to check out the build video.

Intrigued by the 4×4 version, but need a build that takes more time? Try building your TTT in TTL.