Clowns teaching Numberology

The Game

Numberology is a simple yet deceptively challenging game. Each day, players vote for a number within a range from 0 to half the number of active participants. The number that receives the most votes will cause all players who voted for it to be eliminated. As simple as it sounds, mastering the strategy to avoid elimination while outthinking other players is no easy feat.

Starting a Game

Anyone from anywhere can start a new game if three conditions are met:

- There is no current game being played.

- Last game winners claimed their prize.

- Current time of the day is between 00:00:00 and 01:59:59UTC.

Once a new game is created there are exactly 72 hours for anyone from anywhere to join by paying the inscription fee.

About

Numberology was born from a vision to create a game that would not only stand the test of time but also operate independently, relying solely on the involvement and enthusiasm of its players. The game's design ensures that it can continue indefinitely, driven by the collective participation of its community, without the need for external management or oversight. As long as there are players that want to play, Numberology will exist, and that's why it is so important for all of you to know how it is built.

I'm currently looking for a remote job or business inquiries to be able to work 24/7 on web3 development. Contact me at: numberologythegame@gmail.com

How To Play

Each day you have to vote for a number and try to avoid voting like others. The number with the most votes will get their voters eliminated, if you didn't vote for it you will survive to next day.

Voting

To ensure the game remains fair for everyone votes must be secret. To achieve that each day is divided into three phases: commit, reveal, and survive.

00:00:00 UTC - 13:59:59 UTC

During the first 14 hours of the day, players must submit their vote. To keep their vote secret, a hash will be submitted to the blockchain by using a key to encrypt it.

Number + Key = Hash

Early Exit is available for everyone during this phase.

14:00:00 UTC - 21:59:59 UTC

During the next 8 hours of the day, players must reveal their vote. At this point no one will be able to change or submit a vote. To reveal their votes, players will submit the number and key again.

* Notice that by verifying, everyone will know your vote but also your key. That's why you should use a different one each day.

22:00:00 UTC - 23:59:59 UTC

During the last 2 hours of the day, survive function must be executed for the contract to count votes and proceed with eliminations or winnings.

* Anyone can execute this function and only one execution is needed. Trying to execute it twice on the same day will just throw you an error. Once someone executed it, everyone will be able to check the results and see if they survived.

Early Exit

On any day you can decide to leave the game by sacrificing part of your share. Your share is calculated as the total prize of the current game divided by the amount of alive players. By early exiting you will get 80% of your share at that moment, being 5% sent as a tip to Numberology.

Elimination Rules

Each day only one rule of elimination will be applied, this means that if one or many players didn't vote or verify, they will be the only ones eliminated that day.

  • Missing or Invalid Vote

    Failure on voting results in elimination. This can have many forms being the most important ones forgetting to submit your vote during commit phase, forgetting to verify your vote during reveal phase or forgetting the key used for encryption. Remember how the range works:

    - If there are 10 or 11 players, vote from 0 to 5.

    - If there are 8 or 9 players, vote from 0 to 4.

  • Most Voted Number

    If all alive players voted correctly, the ones who voted for the most popular number will be eliminated. If there is a tie, the larger number will be the one to eliminate its voters.

How To Win

There are three possible scenarios for a Numberology game to end:

  • Sharing with The Creator

    On any game day, if all active players vote for the same number and it is not 0, they will equally share the prize, but including the creator of Numberology.

    * Example: Three players are alive and they all vote for number 1, prize will be divided in four and game will end.

  • Sharing with Players

    On any game day, if all active players vote for number 0, they will equally share the prize.

    * Example: Three players are alive and they all vote for number 0, prize will be divided in three and game will end.

  • Last Man Standing

    On any game day, if all active players but one vote for the same number, they will all be eliminated and that one be the last one standing and win all.

    * Example: Three players are alive and the first two vote for number 1 but the third votes for number 0, the third will win all prize and game will end.

  • Last Two Players

    When only two players remain alive, there's an extra rule. If they vote differently, the one who voted for number 1 will win all. This offers five different outputs:

    - If they both vote for number 0, they will share the prize. Each one gets 50%.

    - If they both vote for number 1, they will share the prize also with the Creator. Each one gets 33%.

    - If they vote differently, they won't share the prize. The one who voted number 1 gets 100% and the other nothing.

    - If player one decides to early exit, that player will get 37,5% of the pot and the other one will win the rest. If both players do an early exit, the rest of the pot will be for the Creator.

    * Extra Rewards: Remember that for those ETH and CLOWN ticket games, you will only receive the rewards if you are a winner. Early exiting on those games will get you no rewards. Airdrop game works different, as the rewards are added to prize pool and early exiters can get them too.

  • Early Exit

    On any game day, you can decide to leave the game by sacrificing part of your share. Your share is calculated as the total prize of the current game divided by the amount of alive players. By early exiting you will get 80% of your share, being 5% sent to the Creator of Numberology as a tip.

    * Example: Ten players are alive, total prize is 10ETH and you decide to exit. Your share equals 1ETH, so the Creator will receive 0.05ETH and you will receive 0.75ETH, while the rest will stay in the pot for the other players to win.

* Numberology Fee: 1% of the prize. *

Numberology is a strategic elimination game where players cast votes for a number each day. The twist? Players who vote for the number that receives the most votes are eliminated, making it a thrilling contest of prediction and strategy. The objective is to be the last player standing by avoiding the most popular number.

# How does Numberology work ?

Numberology operates on the Blast network through a smart contract. Once deployed, the first game begins automatically. The game's unique design eliminates the need for the Creator's ongoing involvement; anyone can initiate new games, ensuring the game continues seamlessly and independently.

To participate in Numberology, you'll need a crypto wallet like MetaMask with ether (ETH) on the Blast network. This is necessary to cover the inscription fee and transaction costs. Each time a new game starts, you have a three-day (72-hour) window to register and join the game.

Each day in Numberology is divided into three phases: commit, reveal, and survive.

  • Commit Phase: You will sign a transaction that sends a hash to the blockchain. This hash will be generated by hashing your vote with a key (password) of your choice.

  • Reveal Phase: You will sign a transaction to verify and reveal your vote. Your vote and key will then become available and anyone will be able to check it. This ensures transparency, fairness and allows us to keep all votes secret until this phase.

  • Survive Phase: Anyone can sign a transaction to trigger the contract to count the votes, determine eliminations, and announce the day's results.

The range of numbers you can vote for each day is determined by the number of active players. Specifically, you can vote for any whole number between 0 and half the current number of active players, rounded down if necessary. For example, if there are 10 players remaining, you can vote for any number between 0 and 5. This range ensures that the voting process remains balanced and competitive, as the number of choices adapts dynamically to the number of participants still in the game.

As you probably know, all blockchain transactions and data are public. To maintain the secrecy of votes, we divide the voting process into two phases and utilize cryptographic hashing. This ensures that votes remain hidden until the reveal phase, making the game fair and secure for all participants.

We recommend changing your encryption key daily to enhance the security and integrity of your votes. Each day, when you reveal your vote, the corresponding key used for hashing is also exposed. If you use the same key repeatedly, it becomes really easy for other players to predict your future votes, compromising your strategy. By changing your encryption key daily, you ensure that each vote remains confidential and unpredictable, maintaining the fairness and competitiveness of the game.

If you are unable to commit or verify your vote during the designated phases, you will face elimination. The commit phase is crucial as it ensures your vote is recorded in the blockchain in an encrypted form, while the verify phase is necessary to reveal your actual vote. Failing to commit means your vote is never recorded, and failing to verify means your vote cannot be counted. It is crucial that the key used during the commit phase is exactly the same as the one used during the reveal phase. Any differences, such as variations in capitalization or whitespace, will generate different hashes, making it impossible to verify your vote correctly and resulting in elimination.

Anyone, whether a player or not, can trigger the survive function during the last two hours of the day. It only needs to be done once a day; attempting to do it more than once will result in an error.

If no one triggers the survive function, the votes from the commit and reveal phases will not be processed. Consequently, no eliminations will occur, and players will have the opportunity to change, cast, and verify their votes again the next day. Keep in mind that the votes from the previous day will have been revealed, allowing players to adjust their strategies accordingly. If no one ever triggers the function, the game will stall indefinitely.

To avoid elimination, ensure you vote during the commit phase, verify your vote correctly during the reveal phase, and try not to vote for the number that will get the most votes.

If you miss a vote or vote incorrectly you will be eliminated. Your failure to vote will count as not verified, resulting in your automatic removal from the game.

In the case of a tie, the larger number will be the one to eliminate its voters. This ensures that a clear decision is made on who gets eliminated.

When a player is eliminated, the remaining players continue the game and the total number of active participants decreases. This increases their prize share and can impact strategies and voting dynamics in subsequent rounds.

If you are eliminated, you cannot rejoin the same game. However, you can participate in future games when they begin.

A new game can be started once the current game has ended and prizes have been claimed.

As this is a critical point for the game to continue being played, if a winner doesn't claim the prize in 48h, the Creator or anyone will be able to do so. After 48h of the game ending, The Creator will be able to claim. After 72h of the game ending, anyone will be able to claim.

To win the entire prize, you need to be the last one standing. This means that each day you must successfully vote differently from the majority, ensuring that all other players are eliminated while you remain in the game.

If all active players vote for the same number on any given day, the outcome depends on the number chosen:

    - If the number is 0: All active players will share the prize equally, and the game will end.

    - If the number is not 0: All active players will share the prize equally, but the creator of Numberology will also receive an equal share. The game will then end.

In both scenarios, the game concludes with the prize being distributed among the players (and potentially the creator).

To make this scenario have sense, a new rule is applied: if the two players vote differently, the player who votes for number 1 will claim the entire prize. This leads to three possible outcomes:

    - If both players vote for 0, they will share the prize equally between themselves.

    - If both players vote for 1, they will also share the prize, but this time including the Creator.

    - If they vote differently, the player who chose number 1 takes home the entire prize.

Once the game has ended, if you were one of the winners you will be able to claim your share by just connecting your wallet, clicking on "Claim" and signing the transaction.

Once the game has ended, if you were one of the winners you will see two buttons, one for claiming your prize and one for claiming your rewards.