finish game, proceed to finals
This commit is contained in:
parent
c0cebcfc55
commit
c4f290303d
@ -7,7 +7,7 @@ import (
|
|||||||
func (gm *Game) FinishGame() {
|
func (gm *Game) FinishGame() {
|
||||||
state, _ := gm.GetState()
|
state, _ := gm.GetState()
|
||||||
if state != STATE_PLAY {
|
if state != STATE_PLAY {
|
||||||
fmt.Printf("invalid state, can't continue game in %s state\n", state)
|
fmt.Printf("invalid state, can't finish game in %s state\n", state)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user