This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pledge.h" | |
#include "config.h" | |
#include "math.h" | |
#include "taskmanager.h" | |
Pledge checkPledge(int direction, bool space_left, bool space_top, bool space_right) | |
{ | |
state_t state; | |
// Preferred direction | |
if (direction == 0) { |