I tried resubmitting for a new random seed, yet it is always like that – saying that the answers should either be either all zeros or all ones which surely are not correct.
2. The level seems unbeatable
Even with the correct answers, it doesn’t give success and the paladins do not say anything.
My code sometimes summons an extra troop for the ternary rows but it still passes.
Edit: I think the extra troop is because I repeated the same thing that checks if extra zeros are needed from the base 2 code (doesn’t take into account thirds?).
6427 should be 22211001
There shouldn’t be a leaderboard for time if the level ends at the same time for everyone.
Although I did get both rewards, I went back and improved my code.
It turns out the mistake for 2 was due to using < instead of <= when checking for the highest power that was smaller or equal to the decimal. Perhaps one of the paladins should always say a random power of 2 to catch these edge cases.
I also fixed the thing that made an extra soldier go at the start of the ternary lines. The extra soldier didn’t affect the goal though.
The answer hints seemed to work this time so kudos to trotod.