This project was created for the Internet Computer RUSH Bootcamp. The primary emphasis of this project lies in achieving effective integration. The frontend of the Mahjong game is implemented in Dart/Flutter, while the backend is developed in Rust.
The motivation behind choosing Mahjong was the lack of its implementation in the ICP ecosystem. A pretty mature, MIT licensed implementation in Dart/Flutter was found and utilized.
Flutter allows for the development of native applications for Android, iOS, Web, Linux, MacOS, and Windows from a single codebase, which is nice.
- agent_dart: This was used in the project, but it didn't work for the web due to a bug in dart2js. A tweak was made in the agent_dart fork to address this. Dart has recently released a wasm target, but it had the same bug as dart2js. However, it looks promising.
- Internet Identity: An attempt was made to use Internet Identity, but it seems like it's not fully implemented in agent_dart as it didn't work as expected.
You can check out the live demo of the project here.
For Android users, an APK file is available for download. Please note that this file is hosted on an external server, and as such, you should only download and install it if you trust the source.
git clone [email protected]:macius702/mahjong_icp.git
cd mahjong_icp
git submodule update --init --recursive
scripts/build.sh
scripts/build.sh mainnet