Repository for "Game Theory mini-project" taken at Indian Institute of Science, Bangalore in Spring Semester 2015.
Complete project is written in python 2.7. So it is recommended to install python 2.7 before proceeding further.
There are 3 entities in this project:
- Buyers: All required functions of buyers are coded in buyer.py
- Sellers: All required functions of buyers are coded in seller.py
- Exchange: All required functions of buyers are coded in we.py
There are two more supported files:
- crit_fun.py: This file contains miscellaneous functions to support the program
- graph.py: This file contains all required packages to plot the graph
Following additioanl python packages is used:
- https://pypi.python.org/pypi/names/
On Ubuntu, you can install it by using following command:
sudo apt-get install python-names - http://matplotlib.org/
On Ubuntu, you can install it by using following command:
sudo apt-get install python-matplotlib
To run the project, type following in terminal:
python we.py
To set different parameters like time interval, buyers arrival etc, please read the code. All modules are highly commented and easy to understand.