This is a repository that contains a Tic Tac Toe game implemented with both a random iterative algorithm and the Minimax algorithm. This repository is intended for the final project of the Algorithm Complexity Analysis course, Informatics Telkom University.
- Wikipedia : Tic Tac Toe
- Never Stop Building : Minimax
- Science Buddies : Simple Explanation of the Minimax Algorithm with Tic-Tac-Toe
This repository contents :
- Code
- Research Dump
- Research Report Paper
To run this C++ code, you will need the following prerequisites:
- C++ Compiler: Ensure you have a C++ compiler installed, such as GCC or Clang.
- CMake: A build system generator that can be used to manage the build process.
- Git: Version control system to clone the repository.
- IDE or Text Editor: An IDE like Visual Studio Code, CLion, or any text editor of your choice.
- Operating System: This code should run on any major operating system (Windows, macOS, Linux).
-
Clone the repository:
git clone https://github.com/hilmimusyafa/tictactoe.git cd tictactoe
-
Build the project:
mkdir build cd build cmake .. make
-
Run the executable:
./tictactoe
Make sure to have all dependencies installed and properly configured before running the code.
The original code is licensed as follows:
- Users are permitted to take, use, and modify parts of the code in accordance with applicable terms, while respecting copyright and providing attribution to the original owner.
Modifications made by contributors do not alter the original copyright for the unmodified parts of the code.
This license includes the following:
- Users are allowed to modify this code for both personal and commercial purposes, as long as clear attribution is given to the original owner (Eko Kurniawan Khannedy).
- No warranties are provided for the use of this code, whether for specific purposes or other functionalities.
For further inquiries regarding this license, please contact the original owner or repository contributors.
If you would like to contribute to this branch, please follow these guidelines:
- Fork the repository and create your branch from
main
. - Ensure any new code is well-documented and follows conventions.
- Create a pull request and describe the changes you've made.