How marlonfpereira/arduinoconnect4 works
This repository contains two Connect Four implementations: a terminal C game and an Arduino sketch described as a Connect Four game for an 8×8 addressable LED matrix. The C workflow collects the match count, initializes each board, runs alternating player turns, checks wins or draws, and prints match results. The Arduino sketch is a documented product capability, but its source was not sampled, so its internal stages and connections are not inferred.
Main entry points: Connect4.c Match driver
Components 7
Terminal game
- Match driver
Connect4.c - Board state
Connect4.c - Turn input
Connect4.c - Win detection
Connect4.c - Match results
Connect4.c
Arduino LED game
- LED matrix game
connect4/connect4.ino
Other components
- Player
Connections 8
- Player → Match driver: sets match count
Connect4.c - Match driver → Board state: initializes board
Connect4.c - Match driver → Turn input: runs turns
Connect4.c - Turn input → Player: prompts for move
Connect4.c - Turn input → Board state: updates board
Connect4.c - Turn input → Win detection: checks placement
Connect4.c - Match driver → Match results: records outcomes
Connect4.c - Match results → Player: prints results
Connect4.c