Skip to content
/ hokm Public

A "حکم" game which is written in html, css, & javascript using react, mui, & zustand libraries. ♦♥♣♠🃏

License

Notifications You must be signed in to change notification settings

smrsan/hokm

Repository files navigation

🃏 Hokm (Court Piece)

Screenshot 1 Screenshot 2 Screenshot 3

Build For Web

To build this game, you need to install & use bun.js. It isn't intended to be executable directly by bun.js, but it's better to install packages using bun because of the bun.lockb file which contains all exact versions of packages that should be installed. So...

Install npm packages using bun.js:

bun install

Build the app using vite:

bun run build

Then you can serve game files using any http server; for example:

bunx serve ./dist/
# Files will usually be served on port 3000

Now with the example command above you should be able to run the game in your browser by visiting http://localhost:3000 address.

For having a better user interface, it's better to play the game in a portrait screen.

Develop & Debug

To develop & debug this game using tools like react HMR and fast refresh, it's better to run it using this command:

bun run dev

and develop it on a browser before building and running it on Android or iOS (using Capacitor.js).

Run Android

To run this game project on a virtual or physical android device, refer to this documentation for more detailed information.

About

A "حکم" game which is written in html, css, & javascript using react, mui, & zustand libraries. ♦♥♣♠🃏

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages