Skip to content

A chess demonstration built with Flutter, using the MiniMax algorithm with alpha beta pruning

Notifications You must be signed in to change notification settings

emeleonufavour/chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess

This is a chess application built using the Flutter framework. The app allows you to play chess against a computer opponent that uses the MiniMax algorithm.

Screenshot

Features

  • Play Against Bot: Challenge yourself against a computer opponent powered by the MinMax algorithm.
  • Intuitive UI: Enjoy a clean and user-friendly interface designed with Flutter.
  • Move Highlights: Visual indicators for possible moves and checks.

Installation

To get started with chess, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/emeleonufavour/chess.git
    cd chess
  2. Install Dependencies: Ensure you have Flutter installed on your system. Then, run:

    flutter pub get
  3. Run the App: Connect a device or start an emulator, then execute:

    flutter run

MiniMax Algorithm

The Computer opponent uses the MinMax algorithm with alpha-beta pruning to determine the best move. The depth of the algorithm can be adjusted in the makeBotMove() function in lib/services/chess_service.dart to increase or decrease the difficulty level of the AI.

Features yet to add

  • Multiple difficulty level option in the UI
  • P2P Multiplayer support
  • Previous Move Highlight

Contributing

Feel free to contribute to the project. Here is how to contribute:

  1. Fork the Repository:

    git clone https://github.com/emeleonufavour/chess.git
    cd chess
  2. Clone your fork:

    git clone https://github.com/emeleonufavour/chess.git
    cd chess
  3. Create a branch:

    git checkout -b feature-branch
  4. Make Your Changes: Implement your feature or bugfix.

  5. Commit your changes:

    git commit -m "Describe your changes"
  6. Push your fork:

    git push origin feature-branch
  7. Create a Pull Request: Open a pull request to the main repository.

About

A chess demonstration built with Flutter, using the MiniMax algorithm with alpha beta pruning

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published