Skip to content

Commit

Permalink
Fixed constrictor and wrapped names (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
EbbDrop committed Jan 31, 2022
1 parent 6e01793 commit 09aa6e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions constrictor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions wrapped.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09aa6e0

Please sign in to comment.