Skip to content

Commit

Permalink
improved code
Browse files Browse the repository at this point in the history
  • Loading branch information
josef-stips committed Mar 9, 2024
1 parent 5239b56 commit e9effaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CostumWinPattern = (PatternStructure, Fieldx, Fieldy) => {
let stopCommand;

if (lastIndexBoundary > 5) {
stepsOnIllegalBoundary = (lastIndexBoundary - lastIndex) + 1;
stepsOnIllegalBoundary = (lastIndex - (lastIndexBoundary - 5));
stopCommand = (n - stepsOnIllegalBoundary) - 1;

} else {
Expand Down

0 comments on commit e9effaf

Please sign in to comment.