Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.2 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.2 KB

Solidity BlackJack + Unity Client

An example game of Blackjack that uses an EVM contract written in Solidity as backend, and Unity as a client, utilizing the Loom Unity SDK.

Specifically, the game is European No Hole Card Blackjack with some simplifications. There is no doubling down, splitting pairs, and insurance.

Development

Running the DAppChain

# Download the project
git clone https://github.com/loomnetwork/unity-evm-blackjack.git
cd unity-evm-blackjack

# Build the Truffle project. This will copy the ABI file to the Unity client,
# and compiled contract to the Loom DAppChain

cd truffle
truffle build
cd ..

# Run the Loom DAppChain. Loom binary will be downloaded automatically
cd dappchain
./start-chain.sh

Running the Unity client

Open the Unity project located in unityclient. Open the BlackJack/Game scene and run/build it.

Loom Network

https://loomx.io

License

MIT

Third-party notice

Some art assets are provided by icons8 under CC BY-ND 3.0.