From 7bb0f00e71cb9acedf8bc2ccf3d219453ffde37f Mon Sep 17 00:00:00 2001 From: Caleb Denio Date: Thu, 3 Sep 2026 22:38:48 -0600 Subject: [PATCH] red --- game.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/game.go b/game.go index 9fee202..19878a4 100644 --- a/game.go +++ b/game.go @@ -216,7 +216,7 @@ func (state *State) RenderUI() int { switch state.SolveState { case 1: - fmt.Print("\r\nThe puzzle was filled, but at least 1 letter is incorrect...\r\n") + fmt.Printf("\r\n%s\r\n", AnsiRed("The puzzle was filled, but at least 1 letter is incorrect...")) uiHeight += 2 case 2: fmt.Printf("\r\n%s\r\n", AnsiGreen("The puzzle was solved!")) @@ -254,6 +254,9 @@ func AnsiDimmed(s string) string { func AnsiGreen(s string) string { return fmt.Sprintf("\x1b[32m%s\x1b[0m", s) } +func AnsiRed(s string) string { + return fmt.Sprintf("\x1b[31m%s\x1b[0m", s) +} func RenderPuzzle(puzzle []rune, width, height int, selectedClueCells []int, selectedCell int) string { b := strings.Builder{}