Git Product home page Git Product logo

chessboardfentensorflowjs's People

Contributors

elucidation avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

chessboardfentensorflowjs's Issues

Visualize chessboard from fen string

Chess symbols exist in unicode, build a chessboard div and use them.

Something like

♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜
♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎ ♟︎
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙
♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖

HTTPS Mixed content breaks fen-to-image links

Since this page is served over HTTPS, now the fen-to-image url gets auto-upgraded to HTTPS (which does not work as of Feb 2024)

HTTPS: https://www.fen-to-image.com/image/32/rn1qkb1r/p4ppb/1pp1pn1p/4N3/2BP2P1/1QN1P2P/PP3P2/R1B2RK1.png
HTTP: http://www.fen-to-image.com/image/32/rn1qkb1r/p4ppb/1pp1pn1p/4N3/2BP2P1/1QN1P2P/PP3P2/R1B2RK1.png

Mixed Content: The page at 'https://www.tetralark.com/ChessboardFenTensorflowJs/' was loaded over HTTPS, but requested an insecure element 'http://www.fen-to-image.com/image/32/rn1qkb1r/p4ppb/1pp1pn1p/4N3/2BP2P1/1QN1P2P/PP3P2/R1B2RK1.png'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html

Replace this with something else.

Pieces with dropshadow are not recognized

Am working on a Chess teacher

Chesspieces are from https://commons.wikimedia.org/wiki/Category:SVG_chess_pieces/Maurizio_Monge

With extra dropshadows showing defense/attack

This is the 1997 Kasparov vs Deep Blue rematch game #1 (Deep Blue resigned after G7, but won the 6 game match)

Beta version at: https://chessly.github.io/?fen=4r3/8/2p2PPk/1p6/pP2p1R1/P1B5/2P2K2/3r4

Input is:

image

Wrong output is:

image

  • Black King becomes White King
  • White King becomes White Pawn
  • White Bishop becomes White King (second one on the board)
  • White Rook undetected
  • Black Pawn with 2 dropshadows becomes Black Queen

HTH

This image doesn't work

especially, the white queen, and some other obvious pieces

white queen detected as black queen.
pawn as bishop and so on.

image

Example image that wasn't parsed correctly

Hello! This is such an excellent project idea!

In case it's helpful, here's an image that wasn't parsed correctly:
board

What it came up with: R1PKQP1R/2P1PP1P/P1NP1N2/1P1p2K1/b3p3/2n2n2/ppp2ppp/1kr1q2r

As you will see, it messed up the bishops on the 8th rank, and misidentified one of the black bishops as an extra white king

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.