GithubHelp home page GithubHelp logo

jamesteague / chess-moves Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 310 KB

Simple library for making moves using chess.js with the intention of using the state for showing chessground board.

License: GNU General Public License v3.0

TypeScript 99.93% Shell 0.05% JavaScript 0.02%

chess-moves's People

Contributors

github-actions[bot] avatar jamesteague avatar

Watchers

 avatar  avatar  avatar

chess-moves's Issues

Cannot change study chapter and play moves

Describe the bug
After changing the chapter and playing a move the fen and last move does not change

To Reproduce
Steps to reproduce the behavior:

  1. Select a chapter where study is from the black perspective
  2. Play an AI Move
  3. Show FEN
  4. Select a new chapter from same study
  5. Play an AI Move
  6. Compare FEN, they are the same

Expected behavior
When changing chapters I expect the deltas to be independent of the previous chapter.

Screenshots
Screen Shot 2022-07-20 at 12 27 58

Play against some level of Stockfish

Is your feature request related to a problem? Please describe.
I would like to be able to have the AI be backed by some engine like Stockfish rather than it making random legal moves.

Describe the solution you'd like
Perhaps, allowing the level of Stockfish to be passed in at the time of creation.

Describe alternatives you've considered
Use a different library.

Game comments should come with each move in study

Is your feature request related to a problem? Please describe.
When a move is played comments on the PGN for that move should be available to the consumer.

Describe the solution you'd like
Possibly have it show up in the delta.

Expose all types

Is your feature request related to a problem? Please describe.
Some of the typings expose types that are of dependent packages. I'd like to see all types exported that the library uses.

Describe the solution you'd like
Create a type definitions file that gets packaged in the library.

Describe alternatives you've considered
Import typings from other libraries so that I can cast things as needed

Check if game is over dynamically.

Is your feature request related to a problem? Please describe.
I've run across an instance when using a state machine where I would like to check to see if the game is over since I may not have access to the delta.

Describe the solution you'd like
A method on the object to interrogate the status of the game. More generally, just getting the most recent delta.

Describe alternatives you've considered
I believe I can get around this by looking at the possible moves. If there are none, the game must have ended.

Random Moves seem to be the same

Describe the bug
When moves are played the computer always seems to play the same moves. It will also just shuffle the same piece back and forth.

To Reproduce
Steps to reproduce the behavior:

  1. Play a move
  2. Note AI move response
  3. Repeat steps 1-2 5x (to be confident)
  4. Repeat 3x (to notice pattern)

Expected behavior
Moves should be played at random.

Chapters should have titles and sites

Is your feature request related to a problem? Please describe.
If you wanted to make a selector to allow a user to choose a chapter, there is no way to distinguish what chapter it is.

Describe the solution you'd like
The chapter when parsed should at least have the title. The site, whether it be from online or physical location is a bonus.

Describe alternatives you've considered
There is no alternative to missing data.

Additional context
N/A

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.