GithubHelp home page GithubHelp logo

sedscelestiabpgc / quantum-chess Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 13.0 9.4 MB

A working quantum chessboard to demonstrate quantum phenomena!

License: MIT License

Python 98.56% CSS 0.03% Jupyter Notebook 1.41%
chess quantum quantum-chess quantum-computing quantum-games

quantum-chess's People

Contributors

ayushidubal avatar binary101010011 avatar git-pi-e avatar pd531 avatar yashbhartia00 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

quantum-chess's Issues

Repeated printing of board/pieces

The current implementation causes the board and pieces to be constantly printed. This is causing a blinking effect on some machines.
Instead of simply updating the position of each piece and printing over the old configuration, add a function that simply fills over the old position (as pygame does not allow removing of images) if valid_moves_x is found to be true.

Use this for reference. If you can find a better method, please go for it!

Create King

Create a classical king piece with an colour parameter.

The piece should have the following properties-

  • Allowed moves
  • Starting position

Use the media folder for any images needed.

Create Rook

Create a classical rook piece with an colour parameter.

The piece should have the following properties-

  • Allowed moves
  • Starting position

Use the media folder for any images needed.

Create Queen

Create a classical queen piece with an colour parameter.

The piece should have the following properties-

  • Allowed moves
  • Starting position

Use the media folder for any images needed.

Create Knight

Create a classical knight piece with an colour parameter.

The piece should have the following properties-

  • Allowed moves
  • Starting position

Use the media folder for any images needed.

Create rules

Define the set of rules to be followed while playing on this board.

All discussion regarding this is to be done in this thread.

Detangle refinement

Currently, detangling simply goes through the ent list of the piece being defined and scales the probabilities of each of those pieces according to the final state.

Ideally, every piece entangled with the pieces entangled to the measured piece should also be recosidered, and so on until all the probabilities have been scaled.

Modify the detangle function to do so.

Create Bishop

Create a classical bishop piece with an colour parameter.

The piece should have the following properties-

  • Allowed moves
  • Starting position

Use the media folder for any images needed.

Create Pawn

Create a classical pawn piece with an colour parameter.

The piece should have the following properties-

  • Allowed moves
  • Starting position

Use the media folder for any images needed.

Merge move

Define what a merge move would look like and write a function to do the same.

Modify valid_move_x in pieces.py

image

Pieces in row 1/8 are jumping over pieces in row 2/7 to reach the target. This should only be allowed for the knights.
Appropriate changes to each valid_move_x function are to be made.

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.