I'm relatively new to python and don't quite understand what's going on here. I have the following code:
if cell.location != (always_empty_location
and random.random() < self.settings['OBSTACLE_RATIO']):
And it's broken, but if I remove the parenthesis and do a simple
and \
on the first line, it works. I can't seem to find a solid explanation of how python treats scenario's like this. Everything online suggests this should work.