This project is a fun and interactive way to explore ESP-NOW, the powerful peer-to-peer communication protocol for ESP32 devices. We built a wireless two-player Tic Tac Toe game using M5Stack devices—specifically, two M5StickC Plus units with MiniEncoderC Hats as remotes, and an M5Stack Core S3 as the central game board.
Each remote lets a player scroll through the available spots on the board and make their move. The console updates the game state and broadcasts it back to both players. The game logic handles turns, win detection, and even prevents players from selecting already-taken spots.
This is a great example of how easy it is to send data back and forth across ESP32 boards using ESP-NOW. The code is clean and modular, making it easy to adapt for your own multiplayer games or wireless control projects.
Comments