Skip to content

Commit

Permalink
refactor: Add maximum limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatsnake committed Aug 5, 2022
1 parent 7f9a5f7 commit 0e57ddf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/schulte/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import "github.com/cheatsnake/shadify/pkg/assists"

// Generate a Schulte numerical grid with a given size
func GenerateNumeric(size int) Core[int] {
if size > 100 || size < -100 {
size = 100
}
values := assists.GetNumbers(size*size, 1)
grid := generateGrid(values)

Expand Down

0 comments on commit 0e57ddf

Please sign in to comment.