Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game  (Read 908 times)

0 Members and 1 Guest are viewing this topic.

Offline HackFisher

  • Moderator
  • Hero Member
  • *****
  • Posts: 883
    • View Profile
BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
« 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.
« Last Edit: September 30, 2014, 12:08:29 PM by 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.

Offline cgafeng

Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
« Reply #1 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
}
BTC:1EYwcZ9cYVj6C9LMLafdcjK9wicVMDV376

clout

  • Guest
Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
« Reply #2 on: October 15, 2014, 12:45:53 PM »
I get a segmentation fault: 11 every time I attempt to buy DICE or BET

Offline emski

  • Hero Member
  • *****
  • Posts: 1283
    • View Profile
    • http://lnkd.in/nPbhxG
Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
« Reply #3 on: October 15, 2014, 12:49:47 PM »
Charity subforum ?

Offline HackFisher

  • Moderator
  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
« Reply #4 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?
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.

Offline HackFisher

  • Moderator
  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
« Reply #5 on: October 26, 2014, 03:37:28 AM »
Charity subforum ?

The subforum was just renamed to Play, to avoid the confusion.
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.

Offline HackFisher

  • Moderator
  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
« Reply #6 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.
« Last Edit: October 26, 2014, 03:52:57 AM by 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.

Offline Riverhead

Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
« Reply #7 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.

Online pc

  • Hero Member
  • *****
  • Posts: 1132
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BTS: cyrano
  • Witness: cyrano
  • Payrate: 100%
Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
« Reply #8 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.
Please vote for my BitShares witness "cyrano" and for my STEEM witness "cyrano.witness"!
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline HackFisher

  • Moderator
  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Re: BitShares Play CLI Testnet #2, Enhenced Sample Dice Game
« Reply #9 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.
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.

 

Google+