Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

promotion : other then Queen ? #8

Open
tissatussa opened this issue Sep 15, 2024 · 4 comments
Open

promotion : other then Queen ? #8

tissatussa opened this issue Sep 15, 2024 · 4 comments

Comments

@tissatussa
Copy link

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
Copy link
Author

@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
Copy link
Author

tissatussa commented Sep 16, 2024

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
Copy link
Author

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

@Byson94
Copy link

Byson94 commented Dec 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants