Coder Social home page Coder Social logo

hololb / fusionchess Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 3.0 2.57 MB

A custom chess variant designed in React with chess.js and react-chessboard

Home Page: https://serve.bubner.me/fusionchess

License: MIT License

HTML 1.11% TypeScript 95.74% CSS 3.15%
chess chess-variant react react-app react-game single-page-app fusion-chess

fusionchess's Introduction

Fusion Chess

https://fusionchess.vercel.app/
Fusion Chess

Overview

Fusion Chess is a variant of traditional chess where captured pieces are fused to the capturing piece, giving it their movement and capturing capabilities.

If another piece captures the fused piece, it gains the powers of the last piece that had capturing interaction. The king can also gain the powers of a captured piece, but still cannot move into positions where it may be captured.

Pawns attached to other pieces may not promote unless certain conditions are met, and conflicting promotions will remove the lower-ranked piece. Capturing a piece of the same movement does not result in fusion.

Restrictions

  • When fusing, the strongest piece will always be prioritised as the accompanied piece.
  • A queen capturing any other piece other than a knight will not gain any changes, as the queen can already move in the direction of a bishop and rook.
  • Capturing a knight with a queen will allow the unique L-shape movement, respectively.
  • If the king captures a piece, it will gain powers listed by the captured piece, allowing it to escape checks, but still have the restriction of not being allowed to move into positions where it may be captured.
  • If a king is attached to a piece, and if another piece is captured, the currently attached piece will not be replaced. The king cannot be replaced and may only fuse once.
  • Pawns attached to other pieces may not promote when reaching the final rank unless that pawn:
    • originates from your own side of the board
    • is not an opponent’s pawn
    • is not attached or attaching to a queen
    • is moved with pawn movements to the 8th rank, as a pawn being its primary piece
  • All promotions are auto-queen.
  • Pawns may promote as per normal chess rules if not fused. Promoting a piece that has conflicting movement (BPd8=BQ) will remove the lower-ranked piece (BPd8=Q).
  • Capturing a piece of the same movement results in no fusion, as they are the same piece. For example, pawns capturing each other results in no fusion.
Built in React and TypeScript as a school project.
Licensed under MIT, using libraries chess.js, react-chessboard, stockfish.js.

fusionchess's People

Contributors

bubner avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.