Trying to use operator on a function, not its return... but it's got parentheses?

Piece of the code it's getting hung up on: if get_pos_x() > x: while get_pos_x() != x: move(West)

Situation:

Trying to make a script, that does the following:

Plants bush on entire farm Creates max_Drones() coords, then deploys drones to go to these coordinates, and standby to execute maze solving code All drones solve maze

The problem happens specifically between steps 2 and 3. The drones go to their spot, until the maze spawns and they're blocked from moving. It actually happens while using that function to pathfind.

Instead of being stuck in a loop of trying to move where they can't (which is what I was trying to solve before the code broke), the game throws that error.

Notably, the code USED to work. Then I tried to implement can_move() logic and it permanently broke, even after reverting the changes. Says I'm trying to call the operator on the function instead of its return, suggesting to use ()... which is already there.

Thoughts?

NOTE: this code is imported from a utility file to the main maze solver file. The "error on missing ()" is also toggled off in settings.

reddit.com
u/Killerhurtz — 13 days ago

Suspected crypto scam site, beware.

Site: goldextrade.com

Was talking to someone I met on a dating platform for a while. Now they've been super pushy to try and get me to register on the above platform, even though they said it would be foreign exchange, not crypto.

Seems they got lucky, the domain's almost a year old.

Might be worth reporting.

reddit.com
u/Killerhurtz — 1 month ago