Commit graph

3 commits

Author SHA1 Message Date
b3b369a076
Add Horizontal and Vertical win checking
Adds horizontal and vertical win checking, as well as tests for such
features.

Adds valgrind to the flake.nix

Adds test_connect4 option to Makefile
2024-07-16 01:43:16 -07:00
28a3188ea3
Add rudimentary drop_tile and interactive mode
Adds basic drop_tile implementation. Though doesn't check for wins

Adds an interactive mode for testing drop_tile, which allows the player
to input which tile-space to drop on.
2024-07-14 14:56:30 -07:00
cc107f975c
Add meta-files, board structure, and alloc function
Adds meta-files such as the Makefile and flake.lock/nix for easier
project management.

Adds board structure in connect4.h, as well as some helper functions
such as the make_board function to create a board, and the print_board
function to view the board after creation.
2024-07-14 02:45:09 -07:00