CGFCore is a Python library focused on game theory and its various game types. It provides implementations for different game types like Bayesian, Composed, I mperfect Information, NonZeroSum, Sequential, Stochastic, ZeroSum, and some variants.
To install CGFCore, you can use pip:
pip install path_to_CGF-0.0.3-py3-none-any.whl
Or from the source distribution:
pip install path_to_CGF-0.0.3.tar.gz
Here's a basic example to get started:
from CGF.CGFCore import main
from CGF.test import evaluate
# Test a composed game in sequential order
# main.test_composed_game_sequential()
# Run evaluation tests
evaluate.run_tests()
The library provides implementations for the following game types:
- Bayesian
- Composed
- Imperfect Information
- NonZeroSum
- Sequential
- Stochastic
- ZeroSum
Additionally, there are variants of some games available for more specific use cases.
The library also includes an open game framework with deterministic, final, and stochasticity modules to help in the development and analysis of games.
To run the tests, use the following command:
from CGF.test import evaluate
evaluate.run_tests()
Please refer to the LICENSE.txt
file for licensing information.