https://github.com/ilyachichkov/game-theory
https://github.com/ilyachichkov/game-theory
cpp game-theory
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ilyachichkov/game-theory
- Owner: IlyaChichkov
- Created: 2024-03-25T07:51:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-03T09:39:28.000Z (over 2 years ago)
- Last Synced: 2025-02-23T10:17:05.815Z (over 1 year ago)
- Topics: cpp, game-theory
- Language: C++
- Homepage:
- Size: 608 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Production | Economy game
## Overview
- [Description](#description)
- [Default deck](#default-deck)
- [Build & Run](#build--run)
- [Current progress](#current-progress)
- [Examples & API](#examples--api)
## Description
An implementation of small educational turn-based economy game where teams each turn
select card from starting limited deck. By default, the game consists of 14 moves and
the same number of cards, respectively. Teams vary their earnings according to the unit
price tables and production expenses.
This program allows to create custom scripts with lua language and run game matches,
comparing effectiveness of different economy strategies.
### Default deck
| **x2** `Increase production: +10` | **x2** `Decrease production: -10` |
|---|------------------------------------|
|**x2** `Increase production: +20` | **x1** `Production unchanged` |
| **x2** `Increase production: +30` | **x2** `Decrease production: -20` |
| **x1** `Increase production: +50` | **x2** `Provoke strike` |
## Build & Run
Clone repository:
```bash
git clone git@github.com:IlyaChichkov/game-theory.git
```
Build with CMake:
```bash
mkdir build
cd build
cmake ..
```
Copy default teams folder and run the program:
```bash
cp -r ../example/teams ./
./game_theory
```
## Current progress
- [x] Run default match
- [ ] API for custom strategies (in progress)
- [ ] Run multiple matches
- [ ] Detailed match configuration
## Examples & API
[Making custom team](./example/)
[Team examples](./example/teams)