This is a client server application of the game Gomoku which is similar to connect 4. This application supports multiple games being run at once.
- compile the server program: gcc -lpthread -o Gomoku GameController.c GameMaster.c database.c crypt.c CommonFunctions.c -lcrypt -I/usr/include/postgresql -lpq
- compile the cliient program: gcc -o client client-main.c client-functions.c crypt.c -lcrypt
-
run the server program the server that is specified in your code: ./Gomoku PORT# -- PORT# choose any free port to use
-
run the first client on a different server: ./client PORT# -- PORT# choose the same port as the server
-
run the second client on a different server: ./client PORT# -- PORT# hoose the same port as the server
-
To terminate the server and clients Press CTRL + C