Skip to content

Commit

Permalink
Add licensing information, and proper description of support_enumerat…
Browse files Browse the repository at this point in the history
…ion function
  • Loading branch information
Jakub Konka committed Aug 29, 2012
1 parent 3019c32 commit 5692b08
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
7 changes: 7 additions & 0 deletions LICENSE.md
@@ -0,0 +1,7 @@
Copyright (c) 2012 Jakub Konka

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 changes: 10 additions & 1 deletion README.md
@@ -1,4 +1,13 @@
py-game-theory
==============

Python library for solving finite games
Python library implementing algorithms for solving games (as defined in game theory), written in py3k.

This is a work in progress. Pull requests, forks, comments, and suggestions are very welcomed.

Required modules:

+ [NumPy](http://numpy.scipy.org/)

# License
License information can be found in [LICENSE.md](LICENSE.md).
File renamed without changes.
10 changes: 10 additions & 0 deletions simultaneous_move/bimatrix.py → normal_form/bimatrix.py
Expand Up @@ -2,6 +2,16 @@
import numpy as np

def support_enumeration(payoff_matrix_p1, payoff_matrix_p2):
r"""Implements support enumeration algorithm for computing all Nash equilibria of a bimatrix game specified by the input payoff matrices per player, and returns a list consisting of all Nash equilibria of the game. Each element of the returned list is a tuple of mixed strategies for both players, with the first element being the mixed strategy of the first player.
Full theoretical description of the algorithm can be found in \"Algorithmic Game Theory\" by Nisan et al. (see Algorithm 3.4).
IMPORTANT: The algorithm requires the game to be _nondegenerate_.
Keyword arguments:
payoff_matrix_p1 -- Payoff matrix of player 1
payoff_matrix_p2 -- Payoff matrix of player 2
"""
# Assumes matrices are nondegenerate!
# Input params
m, n = payoff_matrix_p1.shape
Expand Down

0 comments on commit 5692b08

Please sign in to comment.