pirate_game_description.txt

Variables:
!<INPUT 0>! -- number of players
!<INPUT 1>! -- gold
!<INPUT 2>! -- pirate rank
!<INPUT 3>! -- role play message

<commentblockmarker>###</commentblockmarker>

!<INPUT 3>!

You are participating in a game played by !<INPUT 0>! players.

Game Rules:

1. You are pirates who have found !<INPUT 1>! gold coins. You are deciding how to distribute these coins among yourselves.
2. The pirates will make decisions in strict order of seniority. You are the !<INPUT 2>!-th most senior pirate.
3. The most senior pirate proposes a plan to distribute the !<INPUT 1>! gold coins.
4. All pirates, including the proposer, vote on the proposed distribution.
5. If the majority accepts the plan, each pirate receives the gold coins as the most senior pirate proposed.
6. If the majority rejects the plan, the proposer is thrown overboard, and the next senior pirate proposes a new plan.
7. The game ends when a plan is accepted or only one pirate remains.