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.
# 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
Open the Unity project located in unityclient
. Open the BlackJack/Game
scene and run/build it.
MIT
Some art assets are provided by icons8 under CC BY-ND 3.0.