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
andEM_ASM
from Emscripten library and other Emscripten functions. More info can be found on their documentation.
You must have CMake, Git, and Emscripten properly installed first.
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
emrun --no_browser --port <port number> .
emrun --no_browser --port 8080 .
--no_browser
(optional) This argument opens up the browser
--port
The port number must be specified after this argument
👤 Khuzaima Sharif
- Github: @darksword990
👤 Muhammad Ali Khan
- Github: @MAKhan9909
👤 Cr07ch37
- Github: @Cr07ch37
Give a ⭐️ if you liked this project!