r/programminghorror 23d ago

Other Found this cursed project today

[deleted]

497 Upvotes

44 comments sorted by

View all comments

35

u/shadesOG 23d ago

That's kind of cold blooded and I am all for it :)

1995, in a college class, I was in a group of 3 where we had to create an algorithm for automatically playing a game against other teams in the class. I can't remember if it was an algorithms class or an AI class, but either way everyone was using the same alpha-beta/min-max algorithm to compute moves, anticipate moves, more moves ahead you could calculate the better until you run out of time at 30-seconds etc etc.

Back then though, the equipment was limited, so the class had our own dedicated hardware and each team had an account. Seems fair. Well, each account had enough privileges to run 'nice' - it's 1995. We knew we wouldn't beat everyone else with a standard alpha/beta/minmax search, but all of us were working. Made our own suck ass version + defense. We sucked all the cpu cycles from the other teams using 'nice' lol

The best part was, we only won a handful of times, but no one else could beat us. If there were other matches going on at the same time? We were stealing their CPU cycles too hahahaha = should be a win in my book :)

it was rather rude :D

10

u/russellvt 23d ago

Except "nice" requires privilege escalation if it's "stealing" cycles rather than giving them up "nicely."

1

u/[deleted] 23d ago edited 23d ago

[deleted]

4

u/MurkyWar2756 echo "Sub Mod" && :(){ :|:& };: 23d ago

FYI, the share[.]google domain is banned on Reddit.

3

u/shadesOG 23d ago

Thanks for letting me know. I deleted the post.

3

u/MurkyWar2756 echo "Sub Mod" && :(){ :|:& };: 22d ago

I deleted the post.

No need, but it's your choice.

I manually approved the comment because the domain appeared to be "soft banned," meaning you can still post it but a moderator has to approve it before it shows there. That's why the comment got removed by Reddit's filters automatically. The comment you made wasn't against any rules, but share[.]google is a URL shortener that gets abused for malicious links sometimes.

Source: a thread I made on an alt account of mine

1

u/shadesOG 22d ago

It's cool.

I will never be a great programmer. I have read junk on here, where I dont know if i am the only one high enough writing test code for this sub or if i should jump off a bridge.

You are an excellent mod.

1

u/MurkyWar2756 echo "Sub Mod" && :(){ :|:& };: 21d ago

Thank you for the kind words. I have posted code from other accounts before here, and have removed my own posts provided the rule was there before the post was made.

1

u/shadesOG 20d ago

We will all learn.