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
-
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
-
-
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.
- Clone the reop.
- Double-click ~/TicTacToe3D/Code/TicTacToe/TicTacToe.sln
- Visual Studio 2017 should open the project automatically.
- On the top bar, make sure x86 is set before running.
- Run.
In the case of compiler errors:
- Right-click on the TickTakToe project (not the entire Solution!) in the Solution Explorer.
- Choose Properties.
- On the left menu, under Configuration Properties, select VC++ Directories.
- 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.