# Game States

```solidity
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
}
```

<table data-full-width="true"><thead><tr><th width="358">Status</th><th width="690">Description</th></tr></thead><tbody><tr><td>INACTIVE</td><td>A game the has not been created will be on this state by default.</td></tr><tr><td>WAITING TO JOIN</td><td>A game that has been created with an amount of joined players inferior to the amount described when creating the game.</td></tr><tr><td>READY TO START</td><td>When the amount of players joined are equal to the amount of players requested.</td></tr><tr><td>MIN_PLAYERS_MET</td><td>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.</td></tr><tr><td>MAX_PLAYERS_REACHED</td><td>When the maximum amount of players for starting the game is reached and the game is ready to start.</td></tr><tr><td>PLAYING</td><td>A regular state where time is passing by and is a player's turn.</td></tr><tr><td>AUCTIONING * </td><td>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:<br>- When a player lands on an unowned property and decides not to buy it.<br>- WHen a player lands on a property which owns two of the other properties. amd the variant is active.<br>- When a player retires.</td></tr><tr><td>PLAYER IS NEAR BANKRUPTCY</td><td>When a player is Near bankruptcy, it may be due to one fo the following reasons:<br>- He landed on a spot on wchich it has to pay rent and doesnt have the amount for it<br>- He landed on a card and the amount to pay is higher than the current balance of the player<br>- He landed on a tax card and the tax amount is greater than the value he has.</td></tr><tr><td>PLAYER_HAS_TO_DECIDE</td><td>When a player <strong>rolls the dice</strong> or <strong>picks a card</strong> and lands on a property that is <strong>unowned.</strong><br><strong>There should be no other way that the game enters this state.</strong><br><br>If player ends turn while in this state, the BANK will auction the property in which the player curretny sits on.</td></tr><tr><td>PLAYER_HAS_TO_PICK_CARD</td><td>When a player <strong>rolls the dice</strong> and lands on a board location that is either a <strong>Defi Booty Bag</strong> or a <strong>Zero Knowledge Chance</strong>.<br><br>If there's time, make player pick card. If no time, execute the worst card for the player.<br><strong>There should be no other way that the game enters this state.</strong></td></tr><tr><td>PLAYER_HAS_TO_PAY_UTILITY_RENT</td><td>When a player <strong>rolls the dice</strong> and lands on the board location <strong>Hot Wallet</strong> (spot #12) or <strong>Cold Wallet</strong> (spot #28).<br><strong>There should be no other way that the game enters this state.</strong></td></tr><tr><td>PLAYER_HAS_TO_PAY_HIGH_GAS_FEES</td><td>When a player <strong>rolls the dice</strong> and lands on a Utility (spot #4).<br><strong>There should be no other way that the game enters this state.</strong></td></tr></tbody></table>
