From ca7634fa6b8795ac12bd840106676f343e9cfe8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zsef=20Sallai?= Date: Fri, 25 Feb 2022 22:55:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20game=20trying=20to=20save?= =?UTF-8?q?=20in=20random=20mode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/utils.go | 4 +++- main.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/game/utils.go b/game/utils.go index ce3ca16..835472c 100644 --- a/game/utils.go +++ b/game/utils.go @@ -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 } diff --git a/main.go b/main.go index bace669..bd8ed2d 100644 --- a/main.go +++ b/main.go @@ -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",