lichess-org/lila

"Practice with computer" defaults the player to white (and computer to black) in Racing Kings games

开放

#14,116 创建于 2023年11月30日

 (3 条评论) (3 个反应) (0 位负责人)Scala (2,661 个派生)batch import
buggood first issueno scala

仓库指标

星标
 (18,196 个星标)
PR 合并指标
 (平均合并 2天 18小时) (30 天内合并 151 个 PR)

描述

Exact URL of where the bug happened

https://lichess.org/rBvFqWnG

Steps to reproduce the bug

  1. Play a Racing Kings game as black
  2. Load the game in analysis view.
  3. Attempt to "Practice with computer" from some point in the game

What did you expect to happen?

I should be playing the black pieces, and the computer playing white.

What happened instead?

I am playing the white pieces, and the computer is playing black.

Operating system

Windows 11

Browser and version (or alternate access method)

Chrome 119

Additional information

The "Practice with computer" feature appears to select which color is played by player and which by computer based on board orientation. Racing Kings flips the board orientation to white no matter which color you are playing, so when you click "Practice with computer" it has you play white.

You can get around this by manually flipping the board, but then everything is upside down. When my opponent resigns/runs out of time I often like to play the rest of the game out against the computer, and it would be nice to be able to do that in the normal orientation when I'm playing Racing Kings as black.

贡献者指南