https://github.com/ilyachichkov/game-theory
https://github.com/ilyachichkov/game-theory
cpp game-theory
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ilyachichkov/game-theory
- Owner: IlyaChichkov
- Created: 2024-03-25T07:51:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-03T09:39:28.000Z (about 1 year ago)
- Last Synced: 2025-01-04T21:27:29.330Z (5 months 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 [email protected]: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)