https://github.com/fujiwarachoki/civiconquest
A Civilization Conquest Game written in Python using Machine Learning.
https://github.com/fujiwarachoki/civiconquest
conquest game ml python
Last synced: about 1 year ago
JSON representation
A Civilization Conquest Game written in Python using Machine Learning.
- Host: GitHub
- URL: https://github.com/fujiwarachoki/civiconquest
- Owner: FujiwaraChoki
- License: mit
- Created: 2023-08-28T18:57:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T16:29:59.000Z (almost 3 years ago)
- Last Synced: 2023-08-29T18:11:21.827Z (almost 3 years ago)
- Topics: conquest, game, ml, python
- Language: Python
- Homepage:
- Size: 134 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CiviConquest
>**Note**: When starting, make sure to make it full-sized, to see all elements.
Welcome to CiviConquest! This project simulates a strategy game where players compete to build structures, gather resources, and conquer territories. The game features a GUI interface for interaction and includes an AI opponent.
## ToC
- [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Game Mechanics](#game-mechanics)
- [AI Advisor](#ai-advisor)
- [Contributing](#contributing)
- [License](#license)
## Getting Started
### Prerequisites
- Python 3.x
- Tkinter library
- PIL (Pillow) library
- PyTorch library
### Installation
1. Clone the repository:
`git clone https://github.com/FujiwaraChoki/CiviConquest.git`
`cd CiviConquest`
2. Install the required dependencies:
`pip install -r requirements.txt`
## Usage
To play the CiviConquest, run the main script:
`python main.py`
Follow the prompts and GUI interactions to make decisions, build structures, and conquer territories. The game simulates turns for both the player and AI opponent.
## Game Mechanics
- Players take turns to make decisions, manage resources, and expand their territories.
- Players can choose to build structures, gather resources, or conquer new territories.
- The game's GUI interface displays player information, resources, and territories.
## AI Advisor
The AI opponent is powered by an AI Advisor model. This model suggests actions for the AI player based on its current state, such as resource availability and territory count. The AI's decisions are influenced by probabilities, and the model is trained using reinforcement learning techniques.
## Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.