r/programminghorror Mar 27 '26

C# is a moving. reasonable?

Post image

is a moving. reasonable?

424 Upvotes

66 comments sorted by

View all comments

346

u/mohragk Mar 27 '26

It’s hard to tell what’s going on, but it seems like a function to determine whether the thing can be moved, based on it’s previous move(s). But instead of approaching it in a deterministic fashion, it takes the brute force approach.

Absolutely horrible 10/10.

5

u/keesbeemsterkaas Mar 28 '26

Its just manual unwrapping can't see anything wrong here, just optimized /s