Math Matrix

Started by kqs on

Topic category: Help with modding (Java Edition)

Last seen on 06:04, 25. Sep 2021
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Math Matrix

I'm trying to make a Procedure that generates a random matrix with natural numbers from 0 to 11 however the numbers cannot be repeated either horizontally or vertically (like sudoku but without the squares) the Procedure I made is this
https://prnt.sc/1k6f28x

If the preview is bad, I zoomed and divided it into 2 parts

https://prnt.sc/1k6gdj6
https://prnt.sc/1k6ia2w

When I test the procedure it locks the game, so I tested these two parts below separately in the procedure and noticed that they work one part generates an array in which the values are not repeated vertically and the other part horizontally without locking the game, the problem it only appears when I put the two together

https://prnt.sc/1k6ixod
https://prnt.sc/1k6kf4y

Solutions?

If it locks the game, it…
Mon, 08/09/2021 - 10:31

If it locks the game, it means one of your loops never finish due to unmet condition

Last seen on 06:04, 25. Sep 2021
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But when I test the two…
Mon, 08/09/2021 - 18:04

But when I test the two parts separately works great, do you have another way to make this? (a math matrix, without numbers repeated horizontally or vertically)