Description Usage Arguments Details Value Author(s) References See Also Examples
Simulates a zero-sum game between two competitors with a fixed amount of resource.
1 | extGame(bet = 1, total = 100, tmax = 2)
|
bet |
bet size of each competitor on each time. |
total |
total amount of resource. |
tmax |
maximum game time. |
A zero-sum game is a mathematical representation of a situation in which a participant's gain (or loss) of resource is exactly balanced by the losses (or gains) of the resource of the other participant(s). If the total gains of the participants are added up, and the total losses are subtracted, they will sum to zero.
'extGame' returns a graphic with the amount of resource of each competitor on each time.
'extGame' also returns an invisible vector with the results of the loser on each time.
Alexandre Adalardo de Oliveira and Paulo Inacio Prado ecovirtualpackage@gmail.com
http://en.wikipedia.org/wiki/Zero-sum_game
simHub
, randWalk
,
http://ecovirtual.ib.usp.br
1 2 3 4 5 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.