I would like some advice to implement the voting mechanics of Hellapagos. My question is about the states to implements, do they make sense or is it too much? I'm asking this question because obviously, I get the notification about my state.inc.php file being too long in the validator. The voting mechanic is not the main part of the game, so there are other game states for the rest of the game.
So, from the rules:
So, from the rules:
Couple of cards affecting the votes:Votes are necessary in the event of a water or food shortage(or if the players must leave the island, but do not have enough seats on the raft). The first player of the round counts to 3, and everyone simultaneously votes against another player by pointing at that player. Whichever player has the most votes against him is eliminated. You are welcome to debate before voting in order to agree on a strategy. The first player decides when to end the debate.
A player eliminated by a vote due to a shortage can save their skin by playing a card of the missing resource. In this case, the castaway survives, and there is no need to re-vote. They could also shoot another player (if they have a gun and a bullet) to reduce the amount of castaways that need food and water.
If several players receive the most votes, the player with the First Player card chooses which player is eliminated. The First player always gets to choose, even if he himself is one of the players tied for elimination
- Club: gives 2 votes instead of one
- Crystal ball: votes in last, after seeing the results of everyone else
- First player: decides who to exclude if there is a tie
- Conch: player is immune to a vote
- Debate (activeplayer == first player)
- Vote 1 player to exclude (multipleactiveplayer, everyone alive excluding Crystall ball owner)
- Vote in last (activeplayer == Crystall ball owner)
- Break tie (activeplayer == first player)
- Save your skin (activeplayer == player with most votes)