Skip to content

jayanth0725/Twixt

Repository files navigation

Twixt

CProgramming 2025 Project by 2025101019 Jayanth Raveendra

Final Phase 2 Submission

The main code is in main.c and the header files are: board.h for printing the board and validating pin placements; connections.h for autolinking pins of the same colour and checking whether crosslinks interfere; wincheck.h to check whether any player has won the game yet.

The pin coordinates must be entered as and you must choose to continue (enter 'y' to continue and 'N' for stopping and printing the final board state) each time you place a pin so that the players can resign at any point in the game.

If two pins can be connected without any interference from already connected links, the program will link them by itself and mentions it has done so.

As soon as a player places the winning pin, the program breaks and declares that player as the winner.

To make the program, type 'make' and to run the program type './twixt'. To clean up the objects created type 'make clean'

About

CLI version of the board game Twixt!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors