Quackster / Havana

A server created in Java designed to revive Habbo Hotel v31 from the 2009 era.
GNU General Public License v3.0
122 stars 43 forks source link

BUG in chess- Pawn promotion #27

Closed w-miky-w closed 1 year ago

w-miky-w commented 1 year ago

There's a bug in chess: the pawn promotion didn't work. A pawn when reaches the first row of the opponent’s side, had to become any other chess piece – Knight, Bishop, Rook, and even a Queen (not King though)

It was perfect if it's possible to add a string "Your turn" / "Opponent turn" and that both side (even those who choose black), play at the bottom of the board

Screen

Quackster commented 1 year ago

I am using chesslib: https://github.com/bhlangonijr/chesslib

If you can figure out how I can use this library to do the expected behaviour, then I will make the changes, otherwise this open issue may go nowhere.

Quackster commented 1 year ago

Merged here: https://github.com/Quackster/Havana/pull/30/commits/986621b73a64bd1e0893808dadca04cb9f091298

Will test and verify myself and then close this when I can confirm it works as intended, thank you!

Quackster commented 1 year ago

Confirmed and working! 👍

image

And sorry, but the board with the "W name" and "B name" isn't changing, as that's what Habbo originally had it as: https://habboxwiki.com/Cunning_Fox_Game_Hall