Population:
The number of participants
MaxBet%:
In each trade (or gamble) the amount being bet is equal to the
MaxBet
% of the poorer player. For example, if we choose
"20%
" as the max betting percentage, and the two
players betting have wealth of $100 and $1 million dollars,
respectively, then the "stakes" they are gambling for would be
$20
as this is 20%
of the poorer player's
wealth.
Rounds:
How many rounds have been played? A round consists of every player participating in 1 bet.
PlaySpeed:
How fast is the simulation running.
GiniCoefficient:
A measure of the inequality of a population. 0 means perfect equality (everyone has the same wealth), 1 means perfect oligarchy (everyone has no money, except one person who has all the wealth)
TotalWealth:
Sum of each player's money. Initially the same as
populationSize * moneyPerPlayer
. If trades are zero
sum, then this stays constant.
Source code and further explanation is on Github/@secretGeek/yard-sale