aboutsummaryrefslogtreecommitdiff
path: root/challenge.go
diff options
context:
space:
mode:
Diffstat (limited to 'challenge.go')
-rw-r--r--challenge.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/challenge.go b/challenge.go
index 2571012..dc4a5eb 100644
--- a/challenge.go
+++ b/challenge.go
@@ -11,10 +11,12 @@ type Solver interface {
Abort() error
}
-var canSolve = make(map[ChallengeType]bool)
-var errTimeOut = errors.New("time out")
+var (
+ canSolve = make(map[ChallengeType]bool)
+ errTimeOut = errors.New("time out")
+)
-func registerChallenge(c ChallengeType) {
+func registerSolver(c ChallengeType) {
canSolve[c] = true
}