My solution to weekly3 July 2021. This program also allows you to change whether the pirate proposing the distribution can vote, how much gold is being distributed and how many pirates the gold is distributed between.
Woah! I took 10 minutes to understand the code, and it makes sense. One thing that could shorten this code is you could have a list of pirates so you wouldn't need to search them. I got inspired by you to put the three features you mentioned into my code (I do them via variables though, not user input.) Good Job!