Skip to content

Latest commit

 

History

History
51 lines (30 loc) · 2.45 KB

README.md

File metadata and controls

51 lines (30 loc) · 2.45 KB

TicTacToe3D

3D/AI TicTacToe game implementation written in C++ using Irrlicht 1.8.4 (for OpenGL)

Developed by Alon Grinshpoon on January 2018.

Demo video on YouTube: https://youtu.be/acUKPvx-JCk

Project Structure

  • Code: contains all source code, external libraries, and assets

    • Assets: Contains 3D models I created using Microsoft's 3D Builder and Autodesk Tinkercad.com, materials, and textures

    • irrlicht-1.8.4: A free open source C++ library that acts as a 3D engine and utilized OpenGL (http://irrlicht.sourceforge.net/)

    • TicTacToe: My Visual Studio solution containing all the source code

  • Demo Video: Contains a demo video demonstrating a game with multiple rounds between a user and the game's AI (Includes all scenarios of win, lose, tie). Also unlisted on YouTube under https://youtu.be/acUKPvx-JCk

  • Research: Links to preliminary research I did in order to develop a 3D app in C++

    • 3D Game Engines: different C++ game engines I explored before choosing to use Irrlicht

    • Cpp IDE: A tutorial on how C++ development in Visual Studio

App Structure

  • AI.cpp/AI.h: My simple AI implementation which randomly chooses a slot on the board. If it fails to randomly find a slot after a set number of attempts, it will scan the board from the bottom-left corner to find an empty slot.

  • Board.cpp/Board.h: The board implementation which holds the game's main data structure. The exact implementation is encapsulated in this cases, hidden from other game components.

  • Keyboard.cpp/Keyboard.h: An event handler customized to detect user input through the keyboard.

  • TicTacToe.cpp/TicTacToe.h: The game implementation which include a title screen and a game screen.

Installation Guide

  1. Clone the reop.
  2. Double-click ~/TicTacToe3D/Code/TicTacToe/TicTacToe.sln
  3. Visual Studio 2017 should open the project automatically.
  4. On the top bar, make sure x86 is set before running.
  5. Run.

Troubleshooting

In the case of compiler errors:

  1. Right-click on the TickTakToe project (not the entire Solution!) in the Solution Explorer.
  2. Choose Properties.
  3. On the left menu, under Configuration Properties, select VC++ Directories.
  4. For the configuration your are trying to run (Debug, Release, etc) make sure that ....\irrlicht-1.8.4\include is found under Include Directories, and ....\irrlicht-1.8.4\lib\Win32-visualstudio; is found under Library Directories.