ConnectFourPi

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
kstripling
 
Posts: 1
Joined: Tue Nov 10, 2020 4:10 pm

ConnectFourPi

Post by kstripling »

Hey All,

First post on the AdaBox! Here is a game I made called, "ConnectFourPi". It's the traditional Connect Four game rules using parts I purchased from Adafruit. I learned almost everything I needed to from the AdaFruit projects page with exception to the AI MinMax algorthim (YouTube).

The game has two modes, 1v1 and 1vAI. The AI has four levels of difficulty which uses a MinMax algorithm. A Raspberry Pi 4 processes next moves much faster, but the Pi 3 is cheaper and smaller for the build. In the pre-game menu, the two buttons on the Mini PITFT allows the user to select between games modes. During the game, the top button moves the "token" across the top led bar, and bottom button drops the "token". First one to four in a row wins!

Parts:
  • Raspberry Pi Zero w 1.3
    16GB Micro SD Card
    Adafruit Mini PiTFT - 135x240 Color TFT Add-on for Raspberry Pi
    Adafruit NeoPixel Digital RGB LED Strip - Black 60 LED 1m - BLACK
    Logic Shift Convertor 3.3v to 5v for LED data line conversion.
    A usb mini breakout board (As the Mini PITFT covers the existing 5v output GPIO pins).
    A sacrificial usb mini cable.
    A usb mini cable to 5v power source.
    Wires
    Stand Offs
    Wood (I used a piece of left over maple because it looked nice)
Thanks to the AdaFruit Team! You have a great site!
Attachments
ConnectFourPi-s.jpg
ConnectFourPi-s.jpg (46.92 KiB) Viewed 905 times

Locked
Please be positive and constructive with your questions and comments.

Return to “AdaBox! Show us what you made!”