Giter Club home page Giter Club logo

chinese-checker-game-ai's Introduction

Chinese Checkers Game

Project Description

A project done as a team project for AI course in FCAI-CU. It's a game where you can challenge the AI computer to get all your marbles to the opposite triangle and win the game. You can learn the game rules from this video

Concepts Used

  • Alphabeta pruning algorithm

Notes

  • the heuristic that we use in the project is as follow:
    1. we calculate the distance between all marbles of player and the farest free space in his goal (playertotaldistance).
    2. we calculate the distance between all marbles of Computer and the farset free space in his goal (computertotaldistance).
    3. then the value of heuristic is palyertotaldistance - computertotaldistance , The higher the value, the better the state.

the heuristic means that The farther the player is from his goal and the closer the computer is to his target, the better state is.

How to run

  • as console application

    1. download the source code.
    2. run the main function in Main.java.
    3. choose the difficulty of the game.
    4. start to enter the index of row and column of the marble that you need to move from.
    5. enter the index of row and column of the space that you need to move to (valid space).
  • as GUI application

    1. download the source code and run GUI.java, or download the exe and run it.
    2. choose the difficulty of the game.
    3. start playing by moving your marbles with the mouse.

chinese-checker-game-ai's People

Contributors

hossamelgendy1 avatar mohamed-adel2 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.