Skip to content

Commit

Permalink
Merge pull request #6 from nimblebun/develop
Browse files Browse the repository at this point in the history
🐛 fix game trying to save in random mode
  • Loading branch information
jozsefsallai authored Feb 25, 2022
2 parents d4f7a9c + ca7634f commit 942a038
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion game/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ func (m *AppModel) enter() tea.Cmd {
m.GameState = common.GameStateLost
}

m.save()
if m.GameType != common.GameTypeRandom {
m.save()
}

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func main() {
Name: "wordle-cli",
Usage: "play wordle in your terminal",
Action: startOfficial,
Version: "1.0.3",
Version: "1.0.4",
Commands: []*cli.Command{
{
Name: "official",
Expand Down

0 comments on commit 942a038

Please sign in to comment.