Kamka

The Kamka is an in-game mini-game that can be played with a villager. It's a dice game where each player must accumulate more points than the other. The player can earn stellarcoins if they win the game.

> The weather's fine, you'll win everything today. How about a round of Kamka?
>
> Croupier

## Initiate game

The game of Kamka can only be played with croupiers. These villagers can be randomly found within villages, but they are more likely to appear in high-culture locations such as libraries, coffees, or art galleries. The croupier is a unique villager who cannot sell items, their sole purpose is to play Kamka. To start a game, the player must right-click on the croupier and press 'YES.' They must also have at least x10 stellarcoins in their inventory to meet the minimum bet requirement.

## Bet with the croupier

The player can place bets ranging from 10 to 90 stellarcoins, with increments of 10. If the player wins the game, they earn double the amount of their bet. However, if they lose, they forfeit the entire bet. It's worth noting that the higher the bet, the more challenging the game becomes.

## Windows

The game window provides all the necessary information for the player. Each participant is displayed at the top of the screen along with their respective scores. The center of the screen provides instructions on what to do and shows the scores obtained from the dice rolls.

## Rules

Each participant aims to accumulate the highest possible score by rolling 5 dice. Participants take turns rolling the dice one after the other. When a participant rolls their dice, they earn a score based on the pattern created by the dice:

* 2 dice with the same value: 10 x dice value
* 3 dice with the same value: 20 x dice value
* 4 dice with the same value: -20 x dice value
* All other dice earn a score of 1 x dice value

Examples of scoring are given below:

If a participant believes that their score is too low and can be improved, they have the option to re-roll the dice. In this case, they will receive a new score based on the new dice pattern. If the new score is higher than the previous one, they can choose to keep it. However, if the new score is lower, they will lose -20 points.

Alternatively, if a participant is satisfied with their score and doesn't wish to re-roll the dice, they can choose to fold and pass the turn to the other participant. It's important to note that re-rolling the dice is not allowed if the score is below 50. In such cases, the current low score is retained, and the turn is passed to the other participant.

The game continues until one of the participants reaches a score of 400.

## Example of game flow

This section provides an example of an actual game. The player initiated the game, and the first turn is played by the croupier, so the player has nothing to do. The croupier earned a score of 24.

Then it's the player's turn to begin. The player can only press the 'Roll' button to roll the dice.

After the dice are rolled, the player earns a score of 59, which is above the minimum re-roll threshold of 50. So, the player has the option to re-roll the dice or fold. To maximize their score, the player needs to achieve a value higher than their current score of 59. In this example, the player chooses to re-roll the dice.

After re-rolling, the player obtains a new score of 55. Since 55 is lower than the previous score of 59, the player loses -20 points. It's now the croupier's turn again.

When one of the participants reaches 400 points, the game is concluded, and the participant who reached 400 points wins the bet of the other participant.

## Effect on reputation

Playing Kamka is well-received by villagers, and they are often eager to play with strangers. Every time the player engages in a game of Kamka, it boosts their reputation. The better the situation on the planet, the greater the increase in reputation. The formula to calculate earned reputation per game is as follows:

 Too low supplies
 Missing leisures
 Excellent