BitShares Forum

Other => Graveyard => DAC PLAY => Topic started by: HackFisher on September 30, 2014, 12:05:38 pm

Title: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
Post by: HackFisher on September 30, 2014, 12:05:38 pm
For guide, please refer to testnet #1:
https://bitsharestalk.org/index.php?topic=9406.0

The command for play dice now changed to:

Code: [Select]
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)

Quote
wallet_play_dice test123 10 2 1

Quote
2014-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.
Title: Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
Post by: cgafeng on October 09, 2014, 03:16:40 pm
only 1 connect and hang on block 37846

Code: [Select]
(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
}
Title: Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
Post by: clout on October 15, 2014, 12:45:53 pm
I get a segmentation fault: 11 every time I attempt to buy DICE or BET
Title: Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
Post by: emski on October 15, 2014, 12:49:47 pm
Charity subforum ?
Title: Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
Post by: HackFisher on October 26, 2014, 03:36:31 am
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?
Title: Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
Post by: HackFisher on October 26, 2014, 03:37:28 am
Charity subforum ?

The subforum was just renamed to Play, to avoid the confusion.
Title: Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
Post by: HackFisher on October 26, 2014, 03:43:22 am
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.
Title: Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
Post by: Riverhead on October 26, 2014, 03:50:14 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.
Title: Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
Post by: 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.
Title: Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
Post by: HackFisher on November 16, 2014, 04:50:06 pm
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.