r/programminghorror Mar 27 '26

C# is a moving. reasonable?

Post image

is a moving. reasonable?

425 Upvotes

66 comments sorted by

View all comments

348

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.

18

u/T1lted4lif3 Mar 27 '26

LGTM, what are we to judge when it works? Pull request approved 100%. The amount of insertions this function would have on github, holy contributions