Is this a sensible way to do it?
From User talk:Cbrowne
Jump to navigation
Jump to search
Revision as of 11 October 2011 at 13:20.
This is the thread's initial revision.
This is the thread's initial revision.
My AdvancedRobot, Thor, is currently using a static boolean "scanning" to determine whether to turn the radar or not.
This should provide a degree of locking by setting "scanning" to false when we scan a robot, setting it to "true" after we execute, and turning if it's true.
I know it's a naive approach and doesn't lock very well, but it doesn't appear to lock -at all- currently.
Is it my methodology that's flawed, or should I hunt for a bug in the code? (No point debugging if I'm going about it the wrong way from the start).