gokibitz icon indicating copy to clipboard operation
gokibitz copied to clipboard

Playing variations and skipping to next comments can mess up colors

Open sphaso opened this issue 9 years ago • 7 comments

Heya, I found another bug in the dreaded Lumo vs. execration game. Steps:

  1. go to https://gokibitz.com/kifu/VJdTzp84?path=60-58:1
  2. play the very first sequence Ben provides
  3. skip to the next comment (with the comment arrow >)
  4. the stone at Q7 is actually black! you can verify this by replaying the steps without 2 (playing the sequence)

This is the only instance I found, but I'm on the lookout :)

sphaso avatar May 31 '15 08:05 sphaso

I'm not seeing what you are talking about. It's a different variation. If you look at the query string it is saying that you are on move 60 but branched from move 58 on variation 1 (0 based variation labelling so this is variation 2). When you click the next comment button you are now on ?path=59-58:1-59:1 Move 59 branches from variation 1 on move 58 and now this is another branch in that variation. (If I am wrong please help me see the change).

But there is definitely a problem with navigating with the next/previous comment buttons. I can't move to a previous move before the one you link!

levelonedev avatar Jun 02 '15 04:06 levelonedev

I know it's a different variation, but the stone is black regardless :) Screenshots:

  1. go to https://gokibitz.com/kifu/VJdTzp84?path=60-58:1 screenshot from 2015-06-02 07-37-57
  2. play the very first sequence Ben provides screenshot from 2015-06-02 07-38-29
  3. skip to the next comment (with the comment arrow >)
  4. the stone at Q7 is actually black! It shouldn't be white screenshot from 2015-06-02 07-38-47
  5. evidence? If I refresh the page it becomes black :) screenshot from 2015-06-02 07-39-03

sphaso avatar Jun 02 '15 05:06 sphaso

What browser are you using because it appears the correct color for me. Rather what version of Firefox.

levelonedev avatar Jun 02 '15 05:06 levelonedev

Oh, interesting. This is Firefox 38.0.1 on Arch Linux. I've just noticed that as soon as I get to the URL I get a console.log: "Error: null" app.js:3:17496

sphaso avatar Jun 02 '15 07:06 sphaso

I'm using Firefox 38.0 on Ubuntu 14.04. This is so odd.

levelonedev avatar Jun 02 '15 15:06 levelonedev

Bored at work. Can reproduce on a Windows machine on:

  • Firefox 38.0.5
  • Chrome 43.0.2357.81 m
  • Vivaldi 1.0.118.19
  • IE 10

sphaso avatar Jun 04 '15 15:06 sphaso

I totally believe that this is happening... basically, the initial way I implemented sequences is kind of inadequate. It has one major failing (stones aren't captured because the stones and numbers are just added as labels to WGo) and some minor ones (there are some fringe cases of disappearing or stuck stones). The way this needs to be fixed is by a reimplementation of the feature. Which is high priority for me, but I'm just not getting the time I wish I had to work on features for GoKibitz right now.

Basically, I need to get a) password change + email verification at signup working, and then this is probably my next priority.

neagle avatar Jun 04 '15 23:06 neagle