betafish icon indicating copy to clipboard operation
betafish copied to clipboard

promotion : other then Queen ?

Open tissatussa opened this issue 1 year ago • 4 comments

i like your betafish javascript engine, it seems well written, although i don't understand all code .. but i managed to extend the script with some nice features :

  • fixed (*) the FEN notation (ep-square missed, halfmove clock and fullmove number were not correct).
  • show text which side is to move.
  • show when engine is thinking (and buttons are temp. invisible).
  • fixed setFEN button action.
  • added notation list; moves include symbols for check ('+'), mate ('#') and promotion piece; also display engine evaluation cp-value.

*) fullmove number is still not always correct, it may show a broken number like '1.5' : i wasn't able to solve that yet ..

last thing i want to add is selecting the promotion piece : i added a select element to set that piece type before promoting, but i'm unable to make it work : it seems betafish can promote to e.g. a kNight (test FEN 6n1/5P1k/7p/8/8/8/1B4K1/8 w - - 0 1 : the move f7-f8n will give mate and indeed betafish plays that move), but when the user promotes a pawn, a Queen is always set .. how to change that ?

see my current development version at https://www.imoma.eu/projects/betafish-test/

btw. i had to include the code of js/betafish.js and js/main.js into the index.html because loading those scripts the original way gave errors !?

i really hope you can help me with this. promoting to any piece would make the project complete !

tissatussa avatar Sep 15 '24 12:09 tissatussa

@Strryke this evening ChatGPT helped me a lot to create such function : the move generator should add all promotions to the move list, then adjust the data shift logic and it will work. Soon-

tissatussa avatar Sep 15 '24 22:09 tissatussa

newest version at https://www.imoma.eu/projects/betafish-js/ : promotion is fixed ! also the notation now shows reached depth, like CuteChess does. UPDATE: it's NOT fixed .. still working on it, sorry ..

tissatussa avatar Sep 16 '24 13:09 tissatussa

btw. and i managed to import betafish.js and main.js properly (the ES6 way).

tissatussa avatar Sep 16 '24 13:09 tissatussa

I think that this project is now abandoned by its owner....

Byson94 avatar Dec 02 '24 05:12 Byson94