/Tic-Tac-Toe

Capstone project for C++ Nanodegree

Primary LanguageC++

Tic-Tac-Toe Game Example

This is a Capstone Project for the Udacity C++ Nanodegree Program. The design was adpated from this Grid Structure tutorial. The main solving algorithm is based on the Negative Minmax Implementation.

Since the project is using the SDL2 library, the pre-requisities are as listed in this Snake Game example:

Setup for Running Locally

Build Instructions

  1. Clone this repo.
  2. Make a build directory in the top level directory: mkdir build && cd build
  3. Compile: cmake .. && make
  4. Run it: ./TicTacToe.

Test Instructions

  1. Set path to the GTest root in test/CmakeLists.txt: set(GTEST_ROOT /usr/lib/gtest)
  2. Make a build directory for tests: cd test && mkdir build && cd build
  3. Compile: cmake .. && make
  4. Run it: ./testRunner.