user13087: There are many clones of SatoshiDice.
SatoshDice is very primitive game in a technical sense. However, it's very popular among Bitcoin users. It seems like the same thing would be true of altcoins, but there are only 10-20 alt-coin dices versus 200-300 alt-coins.
It seems like the engine of satoshi-dice might be easy to implementat. Probably, without a server-side database. One page-php + bitcoind + little log + small cron's script.
That is why I'm looking for turnkey solution.

user12835: Beware, there are lots of problems with dice, especially when there is a relatively low hash rate (e.g. most altcoins). An attacker with enough hashpower to solomine could steal fairly easily. I can't find the article detailing how a miner could defraud you but it goes something like this:

Attacker has 250 BTC
Attacker makes 2 transactions from one input, but doesn't publish them

betting 250 BTC on Satoshi Dice 50% 1.98x  
sending 250 BTC to another address owned by attacker

Attacker solo mines bitcoin at 0.1% of network (reasonable expectation to block: 1 week) with transaction b included
Attacker finds a block and holds it while sending 250 BTC bet to satoshi dice
Within seconds, attacker knows if they've won 245 BTC or if they've lost

If attacker loses bet: they publish the block, effectively unspending the transaction sent to satoshidice
If attacker wins bet: they discard the block, since 245 BTC is greater than the 25 expected from the block
Also, it's possible for people to game these 0 confirmation games by not paying a fee to the game and sending a double spend with a fee. See: https://bitcointalk.org/index.php?topic=130764.0
Any dice game you use should be deposit based, like just-dice.com

13087: <p>There are many clones of SatoshiDice.</p>

<p>SatoshDice is very primitive game in a technical sense. However, it's very popular among Bitcoin users. It seems like the same thing would be true of altcoins, but there are only 10-20 alt-coin dices versus 200-300 alt-coins.</p>

<p>It seems like the engine of satoshi-dice might be easy to implementat. Probably, without a server-side database. One page-php + bitcoind + little log + small cron's script.</p>

<p>That is why I'm looking for turnkey solution.</p>
 12835: <p>Beware, there are lots of problems with dice, especially when there is a relatively low hash rate (e.g. most altcoins). An attacker with enough hashpower to solomine could steal fairly easily. I can't find the article detailing how a miner could defraud you but it goes something like this:</p>

<ol>
<li>Attacker has 250 BTC</li>
<li>Attacker makes 2 transactions from one input, but doesn't publish them<br>
<ol>
<li>betting 250 BTC on Satoshi Dice 50% 1.98x  </li>
<li>sending 250 BTC to another address owned by attacker</li>
</ol></li>
<li>Attacker solo mines bitcoin at 0.1% of network (reasonable expectation to block: 1 week) with transaction b included</li>
<li>Attacker finds a block and holds it while sending 250 BTC bet to satoshi dice</li>
<li>Within seconds, attacker knows if they've won 245 BTC or if they've lost</li>
</ol>

<p>If attacker loses bet: they publish the block, effectively unspending the transaction sent to satoshidice</p>

<p>If attacker wins bet: they discard the block, since 245 BTC is greater than the 25 expected from the block</p>

<p>Also, it's possible for people to game these 0 confirmation games by not paying a fee to the game and sending a double spend with a fee. See: <a href="https://bitcointalk.org/index.php?topic=130764.0" rel="nofollow">https://bitcointalk.org/index.php?topic=130764.0</a></p>

<p>Any dice game you use should be deposit based, like just-dice.com</p>
