-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
buggood first issueNarrow in scope (but not necessarily easy)Narrow in scope (but not necessarily easy)
Description
Exact URL of where the bug happened
https://lichess.org/study/TA3t1HLK/f8o2kJYW
Steps to reproduce the bug
- play the interactive first chapter till the end
- at the end press Analysis Board
- press Analysis Board to play the chapter again
- make a wrong move
What did you expect to happen?
no errors
What happened instead?
error trying to read the "deviation" property of the first node's gamebook, which does not exist.
Operating system
Windows 11
Browser and version (or alternate access method)
Brave
Additional information
Offending line is here:
| state.comment = parNode.children[0].gamebook!.deviation; |
Details:
- when first playing the chapter, the nodes all have a "gamebook" property, filled with an empty object
- make a wrong move and the move is added as a node to the tree, without a gamebook property
- going to Analysis Board doesn't change that
- pressing the Analysis Board button again REVERSES the situation: the good move does not have a gamebook and the bad move does
- now any wrong move will attempt to read the deviation of the first node's gamebook which now does not exist
crisz
Metadata
Metadata
Assignees
Labels
buggood first issueNarrow in scope (but not necessarily easy)Narrow in scope (but not necessarily easy)
Type
Projects
Status
No status