From 09aa6e01f9158caf2d4c4694260ea7add26af6c4 Mon Sep 17 00:00:00 2001 From: Ebbe Steenhoudt Date: Mon, 31 Jan 2022 09:43:10 -0800 Subject: [PATCH] Fixed constrictor and wrapped names (#61) --- constrictor.go | 2 ++ wrapped.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/constrictor.go b/constrictor.go index 6acd787..65220db 100644 --- a/constrictor.go +++ b/constrictor.go @@ -4,6 +4,8 @@ type ConstrictorRuleset struct { StandardRuleset } +func (r *ConstrictorRuleset) Name() string { return "constrictor" } + func (r *ConstrictorRuleset) ModifyInitialBoardState(initialBoardState *BoardState) (*BoardState, error) { initialBoardState, err := r.StandardRuleset.ModifyInitialBoardState(initialBoardState) if err != nil { diff --git a/wrapped.go b/wrapped.go index bb0a27b..6399b5d 100644 --- a/wrapped.go +++ b/wrapped.go @@ -4,6 +4,8 @@ type WrappedRuleset struct { StandardRuleset } +func (r *WrappedRuleset) Name() string { return "wrapped" } + func replace(value, min, max int32) int32 { if value < min { return max