Giter VIP home page Giter VIP logo

chess's Introduction

Chess

The classic strategy board game. Supports both player vs player and player vs AI. The AI uses a tweaked mini-max algorithm with alpha-beta pruning and can be set to go up to 4 ply in a reasonable amount of time.

Features

Left click selects and moves the chess pieces. Right click un-selects a chess piece.

alt-tag

F1 toggles piece transparency when hovered on. This is for distinguishing overlapping pieces.

alt-tag

F3 toggles displaying possible locations a piece can move to.

alt-tag

The other features can be seen in the readme.txt.

Custom Board

Move the mouse over a tile and press the first letter of a piece to place it. Press T to toggle the team.

alt-tag

Press H to see the help menu for details on how to use the custom board creator.

alt-tag

Press enter to start the game with the custom board.

The following board:

alt-tag

Becomes this after pressing enter:

alt-tag

Usage

Usage:
  java Controller.Window [mode] [ply] [custom]

Parameters:
  [mode]     'pvp' for Player vs. Player.
             'avp' for Player vs. AI.
  [ply]      Numerical value for the AI's ply.
             This value is ignored for pvp mode.
  [custom]   'true' to create a custom board.
             'false' to go with the default board.

Examples:
  java Controller.Window avp 4 false
  java Controller.Window pvp 0 true

Bugs

Having some issues with detecting stalemates.

chess's People

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.