>>1405103>https://pastebin.com/gVpbQFg5I can't be bothered reading all that because I'm lazy, but my suggestion is to
- add a static int to the Chamber class so every Chamber gets a serial number based on when it was created
- paint in the background of each Chamber in a different colour based on its serial number
This will tell you if your problem is a failure to recurse or a failure to add the lines
Maybe consider using a predetermined random seed so your run is deterministic and you can go back with a debugger and break on the chamber that's not subdividing properly
Maybe consider adding asserts to the subdivide functions: for headfucky stuff like this, TDD is often really good. You want to be asserting that the thing you were wanting to happen happened, not that the thing you were trying to do got done. So in this case you'd make a function that looked for m*n (m>1|n>1) regions and asserted if it found any, and run it right at the end of each step after it had recursed but before it returned.
Sorry I'm too lazy to actually run or fix your code, but hopefully these general techniques will help.
>>1405112This is more of a general programming question than a Java one. Have a look yourself, if you can understand JS, Python, PHP, C, C#, Lua or anything similar, you'll also be able to undress Java.