© Kedar Iyer and Chris Dannen 2018
Kedar Iyer and Chris DannenBuilding Games with Ethereum Smart Contractshttps://doi.org/10.1007/978-1-4842-3492-1_11

11. Gambling

Kedar Iyer1  and Chris Dannen1
(1)
Brooklyn, New York, USA
 

Online casinos and gambling sites are notorious for rigging their games. Blockchain-based gambling games offer users a chance to play games with provably fair odds and minimal or no house fees. In this chapter, we cover two gambling games: Satoshi dice and roulette.

Gameplay Limitations

Casino games aren’t a perfect fit for blockchains. The problem lies in random-number generation. Secure RNG requires two transactions spaced at least a minute or so apart, making anything more than single-play games nearly impossible on-chain. A multiturn ...

Get Building Games with Ethereum Smart Contracts: Intermediate Projects for Solidity Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.