Skip to content

An implementation of Noughts and Crosses using a Client-Server implementation for hosting & spectating games.

License

Notifications You must be signed in to change notification settings

TobyBridle/xo-online

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

NOTE: By default, there are no bin folders.

Recommended Setup

toby@desktop:~/xo-online$ mkdir bin && mkdir tests/bin \
  && make

Once you have completed the setup step, simply run the server. If you are still in the root of the project, you'll need to run

toby@desktop:~/xo-online$ ./bin/server

for the server.

Conversely, if you would like to connect as a client:

toby@desktop:~/xo-online$ ./bin/client

Only the Necessities

If you would like to create only the server & client, omitting the tests, simply only create a bin folder within the root of the project.

toby@desktop:~/xo-online$ mkdir bin && make server client

Compiling Tests

If you would like the tests, you will need to have both the bin in the project root and the bin in the test folder

toby@desktop:~/xo-online$ mkdir bin && tests/bin && make tests

Running All Tests

To run every test, run the make test command. As before, this assumes that the bin and tests/bin folders are created.

toby@desktop:~/xo-online$ make test

Configuring Makefile

Release builds are compiled without the -DDEBUG flag and -fsanitize=address (Address Sanitizer) They use a much higher level of optimisation compared to debug builds, using -O3 rather than -O0

If you would like to compile the debug build, use the options within the Makefile:

...
OPT=-O0
CFLAGS=-Wall -Wextra -g -DDEBUG -fsanitize=address $(INCDIRS) $(OPT)

all: server client tests
...

May be useful..

About

An implementation of Noughts and Crosses using a Client-Server implementation for hosting & spectating games.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published