Giter VIP home page Giter VIP logo

chessoid's People

Contributors

aasdfasdfg avatar troygnichols avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

chessoid's Issues

Animate the currently selected chess piece

When you move a chess piece, you must first touch the piece you want to move ("select" it), and then the tile on the board you want to move it to. That's fine, but the currently selected piece (the one that's about to move) should be differentiated somehow.

My first thought is that it should blink slowly like a cursor. Find a way to do this. Maybe the Animation class from Android can help? This will probably be implemented in ChessoidMain.moveTo, when we are setting the clipboard, if a user clicked on a chess piece.

Tilting the phone causes chess pieces to fall off the board.

Re-orienting the phone causes the screen to be re-drawn (portrait or landscape or whatever Android calls it), and that calls the ChessoidMain.onCreate() method. We need to either prevent the redraw on a tilt or have ChessoidMain maintain state when onCreate is re-called (it might re-draw, but it puts the pieces back where they were).

Minority opinion: it's not a bug but a feature. This feature enables more realistic gameplay, as when real-life chess boards are turned on their sides, the pieces do indeed fall off the board and the players are forced to restart.

Implement Castling

Castling is not really supported in the current incarnation of the chess engine. Add some functionality so the engine can tell if a castling move will be allowed or not.

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.