Game States

enum Status {
    INACTIVE,
    WAITING_TO_JOIN,
    MIN_PLAYERS_MET,
    MAX_PLAYERS_REACHED,
    PLAYING,
    AUCTIONING,
    PLAYER_HAS_TO_DECIDE,
    PLAYER_HAS_TO_PICK_CARD,
    PLAYER_HAS_TO_PAY_UTILITY_RENT, 
    PLAYER_HAS_TO_PAY_HIGH_GAS_FEES,
    PLAYER_IS_NEAR_BANKRUPTCY,
    FINISHED
}
StatusDescription

INACTIVE

A game the has not been created will be on this state by default.

WAITING TO JOIN

A game that has been created with an amount of joined players inferior to the amount described when creating the game.

READY TO START

When the amount of players joined are equal to the amount of players requested.

MIN_PLAYERS_MET

When the minimum amount of players for stating the game is reached and the game is able to start or to wait for more players.

MAX_PLAYERS_REACHED

When the maximum amount of players for starting the game is reached and the game is ready to start.

PLAYING

A regular state where time is passing by and is a player's turn.

AUCTIONING *

A state all players can particpiate in the auction of one or more properties. The possible ways of a game to get to this state are: - When a player lands on an unowned property and decides not to buy it. - WHen a player lands on a property which owns two of the other properties. amd the variant is active. - When a player retires.

PLAYER IS NEAR BANKRUPTCY

When a player is Near bankruptcy, it may be due to one fo the following reasons: - He landed on a spot on wchich it has to pay rent and doesnt have the amount for it - He landed on a card and the amount to pay is higher than the current balance of the player - He landed on a tax card and the tax amount is greater than the value he has.

PLAYER_HAS_TO_DECIDE

When a player rolls the dice or picks a card and lands on a property that is unowned. There should be no other way that the game enters this state. If player ends turn while in this state, the BANK will auction the property in which the player curretny sits on.

PLAYER_HAS_TO_PICK_CARD

When a player rolls the dice and lands on a board location that is either a Defi Booty Bag or a Zero Knowledge Chance. If there's time, make player pick card. If no time, execute the worst card for the player. There should be no other way that the game enters this state.

PLAYER_HAS_TO_PAY_UTILITY_RENT

When a player rolls the dice and lands on the board location Hot Wallet (spot #12) or Cold Wallet (spot #28). There should be no other way that the game enters this state.

PLAYER_HAS_TO_PAY_HIGH_GAS_FEES

When a player rolls the dice and lands on a Utility (spot #4). There should be no other way that the game enters this state.

Last updated