Skip to content

Latest commit

 

History

History
61 lines (35 loc) · 1.38 KB

README.md

File metadata and controls

61 lines (35 loc) · 1.38 KB

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!