gbtami / pychess-variants

Chess variant server
https://www.pychess.org
GNU Affero General Public License v3.0
236 stars 115 forks source link

Creating a game via editor sets wrong variant. #1548

Closed Curious2021 closed 2 months ago

Curious2021 commented 2 months ago

This is a long standing issue that until now hasn't been specifically mentioned but needs to be catalogued as a bug. If you log into Pychess to create a game from the editor directly, the game you design is not recognized when you specify that variant unless it's already in the pipeline as being a valid one. For example, let's suppose you want to create a seirawan chess game with a custom FEN code. Fine. Generate your custom Seirawan chess position in the editor. Now click the option to play a game against the machine. After you do this, a dialog box comes up but the game you created in the editor is NOT listed as the one you just generated but a generic one to another chess variant. The problem becomes apparent because you just created a custom FEN position that doesn't get populated in the editor because it didn't recognize the game variant you just created. So you're forced to dismiss the dialog box and go into the main screen and now generate a game in Seirawan chess SEPARATELY. Now Pychess recognizes the chess variant as a valid one to play with. THEN you go back to the editor to recreate the custom FEN code for the chess position you wanted in the first place and now the game is recognized when you click the option to play against the machine. This is a long standing issue that hasn't been recognized as a bug and I'm putting it in here for consideration for a fix.