Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Place Stone Quickly #24

Open
ryanb opened this issue Oct 24, 2010 · 3 comments
Open

Place Stone Quickly #24

ryanb opened this issue Oct 24, 2010 · 3 comments

Comments

@ryanb
Copy link
Owner

ryanb commented Oct 24, 2010

The stone does not show up immediately when placing a move. This is because it must contact the server to determine if it's a legal move and how it should effect the surrounding stones.

Ideally there should be some logic in the JavaScript to handle capturing of stones so it can be displayed immediately.

If this proves too difficult we could just display the stone and then update the capturing later. Maybe add a little spinning wheel to the stone to show that it isn't done.

@alexslade
Copy link

Move legality is fairly easy to work out isn't it? You could add a simple javascript check method:

Check the stone will have enough liberties (90% of the time this is a simple check, it's only with capturing that it becomes a little more difficult, and in that case, a delay could be acceptable)

Check the move is not a repetition (Ko rule).

@ryanb
Copy link
Owner Author

ryanb commented Feb 1, 2011

It also needs to handle the capture logic which is the more complex part. I think it would look weird if the capture feedback was delayed.

@alexslade
Copy link

I don't imagine it would. It happens fairly rarely, and you'd expect a capture check to take a little longer. It's only a tiny delay.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants