From 6de6c6aff3f6bfde26051acc9ecad21f07b4a40b Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Fri, 7 Apr 2023 11:40:44 -0600 Subject: [PATCH] if response == solutions[0] then pass --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index c958b45..642761d 100644 --- a/main.go +++ b/main.go @@ -130,6 +130,9 @@ func ReviewQ(db DB, user IDU, q IDQ) (string, string, error) { if len(question.Clues) == 0 || response == "/clue" { response = readline() } + if len(question.Solution) > 0 && question.Solution[0].ToString(1) == response { + return response, CMD_PASS, nil + } if len(question.Solution) > 0 { fmt.Printf("> Solution:") for i := range question.Solution {