# Source code

*Sampling equilibrium through descriptive simulations*Written in R (http://www.r-project.org) this is a simulation of a system of agents using sampling procedure of learning. Simulation worksfor 2 by 2 symmetric games and an arbitrary large number of players. The results were presented during the 10th Annual Workshop on Economic Heterogeneous Interacting Agents (WEHIA 2005, http://www.essex.ac.uk/wehia05/index.html) You may like to look through the presentation of the results. (code)*Sampling dynamics (Markov chain)*Written in C++ (very simple) this is a simulation of a system of agents using sampling procedure of learning. Simulation works for 2 by 2 symmetric games and arbitrary large number of samples. The config file allows to change parameters of the simulation without compilation. (code)*Multi-market Minority Game*Written in C and very flexible (config file with over thirty variables) simulation of a standard MG with two (or more) markets. The switch between markets is controled with wealth or tolerance level. Possibility of setting specific initial conditions allows exploring MG even deeper. (code)*Procedurally rational players and S(1)-equilibria*Written for Mathematica 3.0. Osborne and Rubinstein (Osborne, M. J. , Rubinstein, A. - "Games with Procedurally Rational Players" - American Economic Review (1998) 88: 834-47) developed an entirely new approach to modelling bounded rationality. The package below (second version) is intended to be used with n-player (possibly) asymmetric normal form games. There is also a tutorial notebook with examples. The main additions in this version are: possibility of dealing with n-player asymmetric games, some support for sampling dynamics (see picture to the right). The source of the package can be freely distributed, it is free (open source, GPL). You can download a zip file containing both package file and tutorial notebook or choose to download separate files: package file and tutorial notebook.- This is extended version of the tutorial notbook. I included applications of the package to both coordination game and ultimatum bargaining game. I also added some notes about the Game[] wrapper.
**NOTE:**I do not write anything for Mathematica anymore. While I still consider Mathematica to be the best general purpose mathematical software available, it is also way too expensive! I suggest using Maxima (http://maxima.sourceforge.net/) with wxMaxima (http://wxmaxima.sourceforge.net/) for simple tasks (and for teaching it is great).

- This is extended version of the tutorial notbook. I included applications of the package to both coordination game and ultimatum bargaining game. I also added some notes about the Game[] wrapper.