Skip to content

Unity Blackjack Demo of Loom SDK with EVM contracts

Notifications You must be signed in to change notification settings

PinkDiamond1/unity-evm-blackjack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Unity Blackjack Demo of Loom SDK with EVM contracts

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 86.2%
  • JavaScript 12.8%
  • Other 1.0%