You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I set stone on board before game start? I have read the doc and load the board successfully, but how can I set stones on the board when I render a flash new game?
The text was updated successfully, but these errors were encountered:
Hi! There's currently no first-class way to define starting state. The simplest way is to play moves through the gameplay functions until you reach the starting state you'd like.
I realize that's not ideal for all use cases, but properly supporting arbitrary starting states is, I think, in line with exposing a board interface that isn't so closely tied to a board. (For example: place black stones on points A, B, C, ..., without worrying about whether black or white is the current player.) I had/have plans to support that type of thing.
Is explicitly playing moves (and passing where necessary) good enough for your use case?
I would say using the gameplay functions for setting stone before game start is usable but not ideal, especially when you try to create a go problem when the number of Black and White stones are not equal. It is tricky and error-prone.
Also having the function of only play Black or White stone make user lay one kind of stone only on their own possible, thus making Tenuki a better board editor.
Btw I tried many Go library and I have to say the responsiveness of Tenuki is awesome! I also love the part where you use vanilla js and there is no dependency for this library. I think adding that functions into Tenuki would make it the best JS Goban library!(I wish I can help writing it but it is way too difficult for me right now).
HI,
How can I set stone on board before game start? I have read the doc and load the board successfully, but how can I set stones on the board when I render a flash new game?
The text was updated successfully, but these errors were encountered: