AR-139AdvancedPremium
Naval Battle Against the Arduino (4x4 Keypad + 8x8 NeoPixel + Buzzer)
The classic pen-and-paper naval battle game, now with the Arduino as your opponent. It secretly places both fleets on an 8x8 sea, and you type coordinates from A1 to H8 on a 4x4 keypad to fire. On the 8x8 NeoPixel matrix a hit glows red, a miss blue and a sunk ship orange, while a buzzer plays whistles, splashes and explosions. Miss, and the Arduino fires back at your fleet in hunt and target mode.
0.0(0)

Remember the naval battle game you drew on squared paper at school? This time you play it against the Arduino: it hides its fleet, and you type coordinates on a keypad and fire. On the light grid a hit turns red, a miss blue and a sunk ship orange; miss once and the Arduino starts hunting your ships. You get to see how rules, turns and a clever opponent are built in code.
Source Code
Premium Content
The source code, block version and FAQ of this project are open to Premium members.
- All Project Code
- Block version
- Frequently Asked Questions
