Techypanda / TicTacToe-In-The-Old-Days

Final Mark: 100%, its tictactoe in c89

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Logo

UCP Assignment 2019

The TicTacToe assignment written in C89 for my Computer Science Degree (100%)
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

Product Name Screen Shot

We had to make tictactoe in c89. no memleaks and memerrors (100%)

Built With

  • Editor: Atom/Vim
  • Compiled With: GCC
  • Makefile optional.

Getting Started

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)

Prerequisites

  • 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)

Usage

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.

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Jonathan Wright - @twitter_handle - Twitter

Project Link: https://github.com/Techypanda/UCP-Assignment-2019

Acknowledgements

  • myself
  • me
  • oh and I
  • and maybe a little shoutout to my lecturer
  • but again, it was me dio.

About

Final Mark: 100%, its tictactoe in c89

License:MIT License


Languages

Language:C 91.9%Language:Makefile 5.8%Language:C++ 2.3%