Light Mode
Dark Mode
self-checking ghost

The 'check_solution()' function in self-checking part, ghost move to 'W' only in most right room?

        if ghost % 4 and "W" in ghost_dirs:
            ghost_dirs.remove("W")

Why is not 'ghost % 4 == 1' ?

And,

        if ghost < 4 and "N" in ghost_dirs:
            ghost_dirs.remove("N")

Why is not 'ghost <= 4' ?

Created: March 1, 2014, 4:57 p.m.
Updated: March 2, 2014, 4:28 a.m.
0
20
User avatar
tamacjp