[New] SpaceDice - AE Decentralized Betting Games

Hello, family, I am your old friend LiuShao.

Application Status

Status: New
Last updated: 15.06.2023
Submited by LiuShao, [email protected]
Team: WeTrue Team
Approved Budget (in h):
Used Budget (in h):
Planned Delivery:

Specify the funding category

Open Source Development

Application Title

Space Dice

Applicant

LiuShao.chain Lfh2msn · GitHub

Value Application

Currently there are many tokens on the AE chain that are only being deployed, as well as mint. [Space Dice] is a simple Dice game, it has a certain gambling nature. Many times people also look forward to having some fun in their spare time, such as using their tokens. At the same time we can attract other users to use and understand AE.

Definition of Terms

In a simple Dice game, players choose a start and end range of up to 9,500 numbers in 0000-9999, and the smart contract will give any random result in 0000-9999. Random numbers in the player’s selection range will be rewarded. The smaller the choice, the richer the reward.

Status Quo

The visual interface development has been completed, and the smart contract has been partially completed. We have released a version of bate based on AE Main Net in WeTrue.

Required Work

  1. Complete all development of SpaceDice smart contract
  2. Complete the UI operations
  3. Debug the consistency of smart contracts and UI data working together
  4. Conduct the test phase. To the last release

Estimate

It takes about three months

Known Limitations

We are halfway through development, and the current version 3 test results are good.
Smart players can double their bets to win, and we are currently addressing this issue.

Outlook

Once all development work is completed, promotional materials and rules of the game need to be created and promoted in the community and beyond.

Publishment

open-source

Maintainance

As long as AE is running here, I will always maintain it

3 Likes

The video on Telegram looked really nice, could you add it here as well please? :slight_smile:

1 Like

Can you add the open source repository so that people can look into the current status quo of the contracts?

Also, can you please elaborate on the randomness part? How do you ensure real randomness without relying on an oracle?! I fail to understand this part as this is a known “issue”.

It’s still in development, but if all goes well, I’ll open source it.

For the selection of random numbers, I used several parameter combinations.

0000-9999 The change we are most concerned about is number four. That’s the thousands place.

ct_2U1usf3A8ZNUcZLkZe5rEoBTxk7eJvk9fcbRDNqmRiwXCHAYN

This is a key AEX9 contract that makes up random numbers, and its total supply is increasing rapidly every second. We choose its units digits as the thousands of random numbers.

At the same time, I chose the timestamp, the difficulty, and the combination.

As long as we keep the 4th and 3rd digits difficult to get, and fast enough to update faster than the tx send completion time, then even if you know the random number in advance it is difficult to bet on it.

Also, I built an int into the contract state. It’s growing positively. The correct value cannot be obtained externally. And the entry and exit of pool funds will also affect the generation of random numbers.

1 Like

Dice

2 Likes

2 Likes

Did you, now? I think so too, haha.

Timestamps are perfectly forgable, I don’t see how you could use them for any sort of fair randomness. A miner can play with difficulty as well. I am genuinely curious how exactly you are making it safe.

2 Likes

go @LiuShao.chain , we want to see you succeed !

You can try adding this effect to the rolled number to make it look more like a slot machine ? Slot Machine Text Animation – CodeMyUI

@LiuShao.chain the Mdw had a bottleneck to process all these calls but a solution was deployed yesterday. I am sorry for any inconvenience.

1 Like

Hey @LiuShao.chain

Thank you for submitting your application for “Space Dice” to the Aeternity Foundation Grant. It’s exciting to see innovative projects like yours that aim to enhance user engagement with the AE chain through entertaining and interactive applications.

Could you please provide us with an update on the project’s current status? We are particularly interested in the following:

  • Development milestones you’ve achieved since the last update.
  • Any challenges you’ve faced during the development process and how you’ve addressed them.
  • Feedback from users on the beta version released on AE Main Net.
  • Progress on the development of the SpaceDice smart contract and UI operations.
  • Measures taken to address the issue of smart players doubling their bets to win.

Your responses will help us better understand the progress of Space Dice and how it aligns with our goals of supporting open-source development on the AE chain.

Looking forward to hearing from you.