Skip to content

vaibhavv06/attack-the-castle

Repository files navigation

Attack The Castle

This repository has the documentation almost all of functions. Hope that it will make you understand better.

The game will be used to experiment some AI Algorithms. There are two AI Algorithms that have been already implemented:

  1. AlphaZero
  2. Minimax

Requirement

  1. Python 3.6 (Anaconda Python is preferred)
  2. Pandas
  3. Tensorflow (For implementing AlphaZero)
  4. Keras (For implementing AlphaZero)
  5. PtQt5 (For the GUI)

Install Python Anaconda if you haven't https://www.anaconda.com/download/

install each packages by using pip install

Configuration

You can see config.py for the configuration of this program and edit it. See the config.py for further information

How to use

  1. Clone the git repository
  2. Do the following accordingly:

Train AlphaZero without pre-trained model (the model that you have previously trained):
python main.py train -azt

Train AlphaZero from pre-trained model:
python main.py train -aztc

Play the game with PyQt5 GUI :
python main.py play -p GUI

CLI is currently unavailable

GUI

alt text

Progress

  • Add basic elements to be input of AI Algorithm
  • Documenting (almost all of them)
  • Fix the mess of the code (need more class and remove unnecessary code
  • Create the GUI
  • Use classic AI Algorithm
  • Experimenting Value-based Reinforcement Learning (Failed with DQN)
  • Experimenting Policy-based Reinforcement Learning (Implemented with AlphaZero instead)
  • Improve AlphaZero and implement PPO to this game

FAQ

Q : Can I Contribute?
A : Of course, just tell me what you want to contribute.

Q : Can I Contact you?
A : email me in vaibhavv06@gmail.com if you want to contact me. Especially about this project.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages