File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ function Panel({gameState, setGameState}) {
128
128
</ div >
129
129
) }
130
130
{ ! isKibitz ( gameState , auth ) && ! gameHasEnded ( gameState ) && (
131
- < div className = "flex-none" >
131
+ < div className = "mt-1 flex-none" >
132
132
< Button
133
133
onClick = { onPass }
134
134
className = "py-1 px-4"
@@ -138,17 +138,15 @@ function Panel({gameState, setGameState}) {
138
138
</ div >
139
139
) }
140
140
{ ! isKibitz ( gameState , auth ) && ! gameHasEnded ( gameState ) && counting && < >
141
- < div className = "flex-none" >
141
+ < div className = "mt-1 flex-none flex gap-x-1 " >
142
142
< Button
143
143
className = "py-1 px-4"
144
144
disabled = { gameHasEnded ( gameState ) }
145
145
onClick = { onResetCounting } >
146
146
Reset Counting
147
147
</ Button >
148
- </ div >
149
- < div className = "flex-none" >
150
148
< Button
151
- disabled = { ( ! isSelfPlay ( gameState ) && countingAgreed ( gameState ) ) || ! countingComplete ( gameState ) }
149
+ disabled = { countingAgreed ( gameState ) || ! countingComplete ( gameState ) }
152
150
className = "py-1 px-4"
153
151
onClick = { onCountingAgree } >
154
152
OK
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public Game update(Move move) {
38
38
}
39
39
40
40
private Game updateInternal (Move move ) {
41
- if (move .agreeCounting () && (countingAgreed () | move .color ()) == COLORS ) {
41
+ if (move .agreeCounting () && (isSelfPlay () || ( countingAgreed () | move .color ()) == COLORS ) ) {
42
42
moves .addGameEndMarker ();
43
43
} else {
44
44
moves .add (move );
You can’t perform that action at this time.
0 commit comments