We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c35ea commit 2b08b04Copy full SHA for 2b08b04
internal/app/controller/engine.go
@@ -227,7 +227,12 @@ func (e *Engine) Continue() {
227
e.SendCommand(e.State.NextCommand, e.State.NextCommandFor)
228
} else {
229
log.Println("No next command available to continue with. Halting game.")
230
- e.SendCommand(CommandHalt, "")
+ if e.State.Command != CommandStop {
231
+ // halt the game, if not in STOP.
232
+ // Rational: After ball placement and no next command, halt the game to indicate that manual action is required
233
+ // If in STOP, that was most likely triggered manually already and a suddenly halted game might be confusing and not intended
234
+ e.SendCommand(CommandHalt, "")
235
+ }
236
}
237
238
0 commit comments