Conversation
|
In response to your question, it is likely a failure to set |
Thanks. Some |
Perlkonig
left a comment
There was a problem hiding this comment.
See two minor tweaks. Then repush and we'll move it into dev.
src/games/plurality.ts
Outdated
|
|
||
| // ------------------------------------------------------------------------------------- // | ||
|
|
||
| public move(m: string, {trusted = false} = {}): PluralityGame { |
There was a problem hiding this comment.
You will want to look for the partial flag and return early when partial (check after moves are processed and before scores are recalculated). See Wunchunk as an example. This is important for any game that has multiple steps or pieces moved/placed. This may be why things are not rendering correctly.
Perlkonig
left a comment
There was a problem hiding this comment.
Looks good! Further changes will likely happen once you're able to test it live.
Here's my working version of Plurality, a recent game of mine. The game rules are all implemented, together with the computation of areas and player scores.
There is one thing I couldn't solve, each player places a tromino, but the pieces only appear at the end of the third mouse click. Don't understand why...