The TicTacToe assignment written in C89 for my Computer Science Degree (100%)
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
We had to make tictactoe in c89. no memleaks and memerrors (100%)
- Editor: Atom/Vim
- Compiled With: GCC
- Makefile optional.
Clone this git repo After compilation (via my attached makefile or through gcc commands), the program can be run through a unix commandline with the command ./TicTacToe FILENAME (there is attached testFiles in testFiles directory)
- gcc
gcc -Wall -Werror -pedantic -ansi -c board.c (OPTIONAL ARGUMENTS: -D SECRET=1 -D EDITOR=1)
gcc -Wall -Werror -pedantic -ansi -c commonlib.c (OPTIONAL ARGUMENTS: -D SECRET=1 -D EDITOR=1)
gcc -Wall -Werror -pedantic -ansi -c program.c (OPTIONAL ARGUMENTS: -D SECRET=1 -D EDITOR=1)
gcc -Wall -Werror -pedantic -ansi -c settings.c (OPTIONAL ARGUMENTS: -D SECRET=1 -D EDITOR=1)
gcc -Wall -Werror -pedantic -ansi -c userInterface.c (OPTIONAL ARGUMENTS: -D SECRET=1 -D EDITOR=1)
gcc -Wall -Werror -pedantic -ansi -c game.c (OPTIONAL ARGUMENTS: -D SECRET=1 -D EDITOR=1)
gcc -Wall -Werror -pedantic -ansi -c list.c (OPTIONAL ARGUMENTS: -D SECRET=1 -D EDITOR=1)
gcc -Wall -Werror -pedantic -ansi -c log.c (OPTIONAL ARGUMENTS: -D SECRET=1 -D EDITOR=1)
gcc board.o commonlib.o program.o settings.o userInterface.o game.o list.o log.o -o TicTacToe
- makefile
make (OPTIONAL ARGUMENTS: -SECRET=1 -EDITOR=1)
Run it like so in a terminal window. ./TicTacToe FILE File is a text file with m n k dimensions, as this is really M N K game. If EDITOR is compiled with the program, you may edit MNK at runtime if SECRET is compiled you lose a option in menu.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Jonathan Wright - @twitter_handle - Twitter
Project Link: https://github.com/Techypanda/UCP-Assignment-2019
- myself
- me
- oh and I
- and maybe a little shoutout to my lecturer
- but again, it was me dio.