Skip to content

DavidSolomon22/knights-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knights AI

Overview

Knights game with the possibility of playing against artificial intelligence, based on the Monte Carlo Tree Search algorithm. 🏆

Table of Contents

About The Project

Main Screen Shot

Description

Rules

Knights game is played on an 8x8 board. Each of the two players has 16 knights. Each of those pieces can move one square in any direction. They can also jump over several other knights in one move (like in draughts). The goal of the game is to put all of the knights at the end of the board.

Algorithm

Monte Carlo Tree Search (MCTS) is one of the best algorithms for board game engines. It uses much less resources than classical versions of tree search algorithms. MCTS keeps perfect balance between exploration and exploitation of the tree. The implementation of this algorithm is based on the implementation of Mr. Jeff Brady. Big credits to him!

Built With

Getting Started

Prerequisites

Installation

  1. Clone the repo
git clone https://github.com/DavidSolomon22/knights-ai.git
  1. Create virtual enviroment by using below command inside the root direcotry of this project
virtualenv venv
  1. Activate virtual enviroment
source venv/bin/activate
  1. Install required packages
pip install -r requirements.txt
  1. Go inside working directory
cd knights-ai
  1. Run program
python3 main.py

Usage

Start Screen Shot

In-game Screen Shot

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/amazing-feature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

David Solomon - via Linkedin

Acknowledgements

About

Knights game with the possibility of playing against artificial intelligence, based on the Monte Carlo Tree Search algorithm. 🏆

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages