<s> if self . state == "<STR_LIT>" : <EOL> self . random_heading ( ) <EOL> if self . can_see ( player ) : <EOL> self . state = "<STR_LIT>" <EOL> elif self . state == "<STR_LIT>" : <EOL> self . head_towards ( "<STR_LIT>" ) <EOL> if self . in_range_of ( player ) : <EOL> self . fire_at ( player ) <EOL> if not self . can_see ( player ) : <EOL> self . state = "<STR_LIT>" </s>
