Skip to content

Commit

Permalink
Fix hold/next player for first player (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerbaud authored and mathieu-pousse committed Aug 25, 2016
1 parent b1615d4 commit 9603baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func commonNextDart(game Game) {

// HoldOrNextPlayer switch game state between ONHOLD and PLAYING with side effects according to game implementation
func commonHoldOrNextPlayer(game Game) {
if game.State().Ongoing == common.PLAYING {
if game.State().Ongoing == common.PLAYING || game.State().Ongoing == common.READY {
game.State().Ongoing = common.ONHOLD
game.State().LastMsg = "Next Player"
game.State().LastSector = common.Sector{}
Expand Down

0 comments on commit 9603baf

Please sign in to comment.