game_resolver
This library is internal library for nishino-lab(The University of Tokyo)
http://www.css.t.u-tokyo.ac.jp
Run Sample Game
This library has three type sample games(prisoner, battle of sex, cournot).
from game_resolver.games.custom_game import Prisoner
from game_resolver.nash_equilibrium import NashEquilibrium
prisoner = Prisoner()
ne = NashEquilibrium()
eq = e.get_equilibrium(g)
for i in eq:
print(i)
Run your own game
A Nash equilibrium can be solved by representing the problem to be solved in the Game class.
from game_resolver.games.custom_game import CustomGame
from game_resolver.nash_equilibrium import NashEquilibrium
player_num = 2
action_list = ["Cooperate", "Defect"]
all_player_action_list = [
("Cooperate", "Cooperate"),
("Cooperate", "Defect"),
("Defect", "Cooperate"),
("Defect", "Defect")
]
payoff_list = [
[3, 0, 5, 1],
[3, 5, 0, 1]
]
your_own_game = CustomGame("volunteer_dilenma",
player_num,
action_list,
all_player_action_list,
payoff_list)
e = NashEquilibrium()
eq = e.get_equilibrium(your_own_game)
for i in eq:
print(i)
Metadata
Release files for game_resolver 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| game_resolver-0.3.1.tar.gz | 6.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| game_resolver-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / game_resolver-0.3.1.tar.gz
| Download URL | game_resolver-0.3.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b1a50d5cef48f8624fec09f964bdddffd7ee6dfc5a76d4218e7a6a9f5b884a4
|
|
BLAKE2b-256 checksum How to use checksums |
8efe673ee006587847b8f825948761b4c5b8f2e50f120bbe06a1c54e01068d75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.1 CPython/3.12.1 Linux/6.5.0-1015-azure
|
Release files / game_resolver-0.3.1-py3-none-any.whl
| Download URL | game_resolver-0.3.1-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43c23f3370ef4e802f3c8e42e1b60053cb7c7ff074b7a19733df706b7a9af732
|
|
BLAKE2b-256 checksum How to use checksums |
71aff9457c584783c55c4e87a43d159b13d8d7ee20e857abd7c95d2ebf13acdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.1 CPython/3.12.1 Linux/6.5.0-1015-azure
|
Security for game_resolver 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.