if response == solutions[0] then pass
This commit is contained in:
3
main.go
3
main.go
@@ -130,6 +130,9 @@ func ReviewQ(db DB, user IDU, q IDQ) (string, string, error) {
|
|||||||
if len(question.Clues) == 0 || response == "/clue" {
|
if len(question.Clues) == 0 || response == "/clue" {
|
||||||
response = readline()
|
response = readline()
|
||||||
}
|
}
|
||||||
|
if len(question.Solution) > 0 && question.Solution[0].ToString(1) == response {
|
||||||
|
return response, CMD_PASS, nil
|
||||||
|
}
|
||||||
if len(question.Solution) > 0 {
|
if len(question.Solution) > 0 {
|
||||||
fmt.Printf("> Solution:")
|
fmt.Printf("> Solution:")
|
||||||
for i := range question.Solution {
|
for i := range question.Solution {
|
||||||
|
|||||||
Reference in New Issue
Block a user