This is the classic game of connect 4 coded in C for a challenge at 42 Luiss Firenze.
Put 4 marks in a row (horizontally, vertically or diagonally) to win.
You can play against the CPU or against another player in shared screen.
command | description |
---|---|
make |
compile connect4 |
make clean |
remove tmp files |
make fclean |
remove tmp files and executable |
make re |
force recompile |
make pvp |
compile connect4 with default mode PVP (necessary for noob graphics) |
make pve |
compile connect4 with default mode PVE |
./connect4 <n_of_columns> <n_of_rows> <graphics>`
name | description |
---|---|
noob | to play on the command line |
mlx | to play on a new window with fancy graphics |