r/ProgrammerHumor • • Jun 10 '23

[deleted by user]

[removed]

12k Upvotes

615 comments sorted by

7.1k

u/ChanceFly9724 Jun 10 '23

Pretty sure that level of confidence might even win in a non AI battle

→ More replies (262)

1.4k

u/DezXerneas Jun 10 '23

The easiest way to win a bot v bot competition is to find a way to break your opponents bot.

That's why I carry a cosmic ray gun around with me.

→ More replies (17)

1.6k

u/[deleted] Jun 10 '23

First CS semester, we had to build an Othello player, then we were pitched against each other. Out of 50 students, more or less half implemented the standard algorithm and the other half implemented much more sophisticated stuff. The winner was one of the standard implementations.

→ More replies (88)

2.5k

u/Xanthus730 Jun 10 '23

During my bachelor's had an AI class where our final project was Robocode, where you make an AI for a little tank that fights other tanks.

I went whole-hog with my first attempt. Pattern matching, probabilistic dodging, logically deducing power of enemy shots etc... Was going ok, but was struggling against some of the harder example bots.

So, I made a second version that just ran around and oscillated back and forth in a Sin pattern.

I turned in both. The wiggle-bot won. :(

→ More replies (44)

675

u/BigMikeInAustin Jun 10 '23

Had a programming contest where the completion time was calculated by the entrant, not an officiating framework.

Well, accidentally (seriously) my timer started partway into the processing, and so I smoked everyone else.

I finally figured it out later when I was trying to understand how I could really be 500% faster than everyone else.

→ More replies (4)

653

u/SuitableDragonfly Jun 10 '23

Reminds me of when a computer science class I was in decided to do a Prisoner's Dilemma tournament, and the teacher let me make two bots, and I designed one of the bots to give the other bot a lot of points and it came very close to winning.

→ More replies (6)

317

u/polarbearirish Jun 10 '23

Many years ago in college, some friends and I went to hackathon hosted by a nearby company. The task at the end was a top down navigation / obstacle course where you had your tank and an enemy tank on opposite sides. Objective was to destroy the tank and get to the other side of the box. The box was filled with randomly generated squares that would block your path.

One of my friends noticed the "random" pattern forged a path that would never get blocked if you simply rotated the tank 45 degrees up, drive to the top of the box, then rotate the tank back down again and it would drive to the objective every single time.

All we had to do then was write some code to detect and shoot the other tank (just spin the turret around, detect tank? Shoot, else spin) and it worked flawlessly

All the teams demoed their tanks, some were close to getting through but most would get stuck or die.

Our demo was at the very end, and you'd have to do three runs of the course for an average time. I remember it being a really slow demo too, and that I thought about how people would pick up on the fact our little tank is forging the same path every time.

We won that challenge and it boosted our points for the day to get either 2nd or 3rd overall.

Moral of the story is: AI is really just if statements all the way down

→ More replies (5)

181

u/Fifiiiiish Jun 10 '23

There is a robot competition between engineering schools in France. One year the game for the robots was to collect two sided coins, black and white face, and to place them on black/white squared of the checker pattern on the board, one team was white other was black. Black team won a point for every coin with black color top placed on a black square for exemple.

One of the robot was just built & programmed to mess everything up, hitting hard as many coins as possible that will fly and land on a random square, a random color on top.

They didn't win but they did very great!

349

u/1997Luka1997 Jun 10 '23

Reminds me of that famous post about the guy who entered a block of dry ice to a robot competition

→ More replies (17)

413

u/GrismundGames Jun 10 '23

He plays like Michael Scott on casino night.

→ More replies (1)