Skip to content

My 2nd Semester OOP Project which uses concepts of C++ OOP and Minimax Algorithm for AI in Tic Tac Toe

Notifications You must be signed in to change notification settings

darksword990/tic-tac-toe

Repository files navigation

Welcome to tic-tac-toe 👋

This project uses the Emscripten toolchain to compile this C++ project to WebAssembly. I have also used concepts of Minimax Algorithm to make AI game mode. We can choose custom difficulty levels (Easy, Medium, Hard). The project uses macros such as EM_JS and EM_ASM from Emscripten library and other Emscripten functions. More info can be found on their documentation.

Installation

You must have CMake, Git, and Emscripten properly installed first.

Build

You first have to make build directory inside the project

Run:

cd build

Then run the following commands on terminal:

emcmake cmake -G "MinGW Makefiles" ..

emmake make

Usage

emrun --no_browser --port <port number> .

Example

emrun --no_browser --port 8080 .

--no_browser (optional) This argument opens up the browser

--port The port number must be specified after this argument

Author

👤 Khuzaima Sharif

Contributors

👤 Muhammad Ali Khan

👤 Cr07ch37

Show your support

Give a ⭐️ if you liked this project!

About

My 2nd Semester OOP Project which uses concepts of C++ OOP and Minimax Algorithm for AI in Tic Tac Toe

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published