Giter Club home page Giter Club logo

chessgame's Introduction

ChessGame

A basic chess game developed based on java

Features:

  • Basic game logic
    • Perform most of the pieces' movements such as "promotion" and "En passant" (although "castling" and other non-intuitive movements are not included).
    • Prompt possible moves and notify if the player is checked.
    • Terminate the game when there is stalemate or checkmate.
  • Simple logging of players' actions (which can only store up to five actions temporarily)
  • Operations to manipulate the game such as undo and restart
  • Custom game with two custom pieces
    • Apprentice: A class that inherits Pawn's logic, with additional ability to perform "En passant" on every turn. It can only promote to wizard class.
    • Wizard: An advanced class that only apprentice can promote to. A wizard can move in Rook's logic and Bishop's alternately with first move in Bishop's logic.

Next Steps (TODOs)

  • Basic game logic
    • Implement all the pieces' movements.
    • Implement all the other conditions that should terminate the game (in a tie).
  • Game operations
    • Add "redo" as complement of "undo".
    • Add "export" / "import" functionalities to save / load the game to / from a file (probably in JSON).
  • Typo corrections

chessgame's People

Contributors

ghlgh avatar

Watchers

James Cloos avatar  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.