Open EX867 opened 6 years ago
These kinds of "soft deadlocks" should have been a legitimate way of winning the game, yes, but we didn't implement it. It didn't occur to us at the time.
Okay, I could solve it in different way.
idea on how to implement it:
have an "automated scheduler"
Importantly, passing through a critical section correctly resets the watchdog, as in "service has been rendered".
If the watchdog reaches zero in auto-stepping mode, it means that the program was in a faulty state, and a "denial of service" was achieved.
I made darkness and evil both 1 in first of loop, and entered lock twice (by releasing it in thread 1) in thread 0, then can never enter if in thread 1.