BitShares Play CLI Testnet #2, Enhenced Sample Dice Game

Started by HackFisher, September 30, 2014, 12:05:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HackFisher

Quote from: pc on October 27, 2014, 10:41:30 AM
Has the RNG problem been solved? I've read the discussion in these threads https://bitsharestalk.org/index.php?topic=6764.0 https://bitsharestalk.org/index.php?topic=7989 . You whitepaper still seems to contain your own original proposal, which in my understanding is still vulnerable to several of the problems mentioned in those threads.
The original RNG still stand for a lot of cases or requirement. And FreeTrade's idea is good, deserved to be involved in.

But remember that RNG is no longer the core feature of PLAY, because we've switched from gambling to game asset platform.
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

pc

Has the RNG problem been solved? I've read the discussion in these threads https://bitsharestalk.org/index.php?topic=6764.0 https://bitsharestalk.org/index.php?topic=7989 . You whitepaper still seems to contain your own original proposal, which in my understanding is still vulnerable to several of the problems mentioned in those threads.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 [url="http://bitcoin.quisquis.de"]http://bitcoin.quisquis.de[/url]

Riverhead

Quote from: HackFisher on October 26, 2014, 03:43:22 AM

The next testnet will be with GUI and chip exchange interface, stay tuned.

Great seeing this moving forward. The modularity is VERY cool. Can't wait to check out the GUI.

HackFisher

#7
The testnet is over, we just made some refactoring to the game layer, to separate the game codes from blockchain librariy.

Now in the develop branch, all game related operation are located in a single game library, in this way, game developers can provide game source code for easy merging.

The ideal status is that the games can be plug into the play platform as plugins, and their logic data on blockchain also required to separate from each other.

The next testnet will be with GUI and chip exchange interface, stay tuned.
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

HackFisher

Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

HackFisher

Quote from: clout on October 15, 2014, 12:45:53 PM
I get a segmentation fault: 11 every time I attempt to buy DICE or BET

Didn't catch that in time, do you still have the log running in gdb?
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

emski

[url="https://bitsharestalk.org/index.php/topic,9857.0.html"]https://bitsharestalk.org/index.php/topic,9857.0.html[/url]

clout

I get a segmentation fault: 11 every time I attempt to buy DICE or BET

cgafeng

only 1 connect and hang on block 37846


(wallet closed) >>> getinfo
{
  "blockchain_head_block_num": 37846,
  "blockchain_head_block_age": "5 days old",
  "blockchain_head_block_timestamp": "2014-10-04T21:02:30",
  "blockchain_average_delegate_participation": "0.25 %",
  "blockchain_confirmation_requirement": 1,
  "blockchain_delegate_pay_rate": "0.00001 PLS",
  "blockchain_share_supply": "1,999,999,999.80949 PLS",
  "blockchain_blocks_left_in_round": 29,
  "blockchain_next_round_time": "at least 5 minutes in the future",
  "blockchain_next_round_timestamp": "2014-10-09T15:20:00",
  "blockchain_random_seed": "59933cc080a920b746dc092d705aeae39ec04ae7",
  "client_data_dir": "e:/code/BITSHA~2/vs2013/programs/client/Release/data",
  "client_version": "unknown-testnet-2",
  "network_num_connections": 0,
  "network_num_connections_max": 200,
  "ntp_time": "2014-10-09T15:15:11",
  "ntp_time_error": 5.6043690000000002,
  "wallet_open": false,
  "wallet_unlocked": null,
  "wallet_unlocked_until": null,
  "wallet_unlocked_until_timestamp": null,
  "wallet_last_scanned_block_timestamp": null,
  "wallet_scan_progress": null,
  "wallet_block_production_enabled": null,
  "wallet_next_block_production_time": null,
  "wallet_next_block_production_timestamp": null
}
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

HackFisher

#1
For guide, please refer to testnet #1:
https://bitsharestalk.org/index.php?topic=9406.0

The command for play dice now changed to:

wallet_play_dice [Account] [amount] [O] [G]

O is the odds, also means how many sides a dice have. e.g 6-sides dice
G means the guess number, 1 =<G <= O, the number player think the dice will roll out.

Example, but 100 dices, and do (which means guessing the right side of a coin)

Quotewallet_play_dice test123 10 2 1

Quote2014-09-30T11:57:32 16        test123             test123             0.00000 PLS             register test123                            327,722.81984 PLS       0.50000 PLS         91102938
2014-09-30T11:58:24 21        test123             ORDER-6WkvXDp8      10.00000 PLS            buy 100 DICE @ 100 PLS                      327,712.31984 PLS       0.50000 PLS         335718da
2014-09-30T11:58:43 23        test123             test123             0.00000 PLS             play dice                                   327,711.81984 PLS       0.50000 PLS         8238a755
2014-09-30T12:00:20 33        MARKET              test123             19.80 DICE              winjackpot with lucky number: 0             19.80 DICE              0.00000 PLS         [55a948]

And the result is I won 9.8 dice :)

PS: A mistake in the memo, 0 in  "winjackpot with lucky number: 0" should be 1.
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.