Coder Social home page Coder Social logo

jiganesh / pawnhub Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 2.0 1.98 MB

Pawnhub is a chess variant. Capturing rival pieces demotes the capturing piece to pawn piece after eliminating captured piece.

Python 100.00%
chess chess-variant hackoctoberfest python3 hacktoberfest-accepted

pawnhub's Introduction

drawing

Chess is a board game for two players, called White and Black. Each controlling an army of chess pieces in their color, with the objective to checkmate the opponent's king.

Pawnhub is a chess variant. Capturing rival pieces demotes the capturing piece to pawn piece after eleminating captured piece.

Key mappings

KEYBOARD - KEY KEY MAPPINGS
KEY - ESCAPE Quits the Application
KEY - E Resets the ongoing Game
KEY - T Change the theme

Pawn promotion mappings

KEYBOARD - KEY KEY MAPPINGS
KEY - Q Promote to Queen after pawn reaches last rank
KEY - R Promote to Rook after pawn reaches last rank
KEY - B Promote to Bishop after pawn reaches last rank
KEY - K Promote to Knight after pawn reaches last rank

Low Level design

drawing

Themes in pawnhub

At pawnhub there are five theme configuration which can be switched between by pressing Key - T

We call them :

  • cosmos
  • blue
  • standard
  • walnut
  • checkers

Themes available in application

Rules in pawnhub

All the traditional chess rules work as it is except captures

  • Castling

    drawing
  • Promotion

    drawing
  • En passant

    drawing
  • Capturing

    Capturing works little different at pawnhub, When player plays a move which captures opponents pieces, after eliminating the opponents piece the playes piece demotes in Pawn piece

    How is this fair ?

    Capturing pieces with same value is trick here, As higher value pieces gets demoted to pawn pieces player needs to evalute possible captures which doesnt put him at disadvantage. This makes the game more interesting.

    drawing

pawnhub's People

Contributors

jiganesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pawnhub's Issues

King also demotes to a Pawn

How does the GameLoop End?
It's through Checkmate right?

So i guess, We need to check for legal moves before making a move

image

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.