player_skin kirby
in f1, or go to settings -> tee -> Your skin: -> type kirby therestd::array<bool, 9> next_pattern(std::array<bool, 9> pattern) {
static bool invert = false;
if (invert) {
pattern[0] = !pattern[0];
}
else {
for (qpl::u32 i = 0u; i < pattern.size() - 1; ++i) {
if (pattern[i]) {
pattern[i + 1] = !pattern[i + 1];
break;
}
}
}
invert = !invert;
return pattern;
}
void solve() {
std::array<bool, 9> pattern;
pattern.fill(true);
for (auto& i : pattern) {
print(i);
}
println();
while (true) {
pattern = next_pattern(pattern);
for (auto& i : pattern) {
print(i);
}
println();
bool done = true;
for (auto& i : pattern) {
if (i) {
done = false;
break;
}
}
if (done) {
break;
}
}
}
invert
, if it's true the first door get's flipped. if not, the next door that comes after the first door that is open gets flipped. switch gets flipped, repeat until all doors are off
for a human:
1) switch first door
2) go into next open door. goto 1)
the pattern on the bottom will be the pattern in the render (edited)