]> git.sesse.net Git - remoteglot/commitdiff
Comment DisplayLine.scores better.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 28 Dec 2023 08:16:07 +0000 (09:16 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 28 Dec 2023 08:16:07 +0000 (09:16 +0100)
www/js/remoteglot.js

index 2e66c82fb03fb406a0ec8180762593501134e836..2a15b3e3c22c3acb02440da019c7e1815356c753 100644 (file)
@@ -175,7 +175,10 @@ let display_fen = null;
  * }}
  *
  * "start_display_move_num" is the (half-)move number to start displaying the PV at.
- * "score" is also evaluated at this point.
+ * "score" is also evaluated at this point. scores can be empty and is frequently
+ * sparse; it's generally only really useful for history (we obviously don't know
+ * much about how the score will * move during e.g. a PV, except that a mate/TB
+ * counter might go down).
  */
 var DisplayLine;