34 votes

xkcd 2385 KoTH (Final Exam)

Game Theory is stupid anyway { name: "Game Theory is stupid anyway", run: _ => 100 } Senioritis hits hard sometimes.
hakr14's user avatar
  • 4,974
29 votes
Accepted

Gold Collector KoTH

BaitBot - JavaScript Node.JS Why bother chasing or running if you can never catch? Instead, BaitBot finds the nearest coin and waits for a weaker bot to also approach it. When they're both adjacent, ...
Cain's user avatar
  • 1,189
29 votes

xkcd 2385 KoTH (Final Exam)

Balanced Strategy What could be more balanced than returning all of the numbers? Rotates by one after every game. ...
New Posts's user avatar
  • 391
27 votes

The Futuristic Gun Duel

The BlackHatPlayer The BlackHat Player knows that bullets and shields are a thing of the past; the actual wars are won by those who can hack the opponent's programs....
Matteo Italia's user avatar
27 votes

xkcd 2385 KoTH (Final Exam)

FunnyNumber { name: "FunnyNumber", run() { return 69 } } Somebody has to do it.
SjoerdPennings's user avatar
26 votes
Accepted

xkcd 2385 KoTH (Final Exam)

Offset Prediction I'd made a bot that just optimizes for the moving average of the averages (which worked reasonably well), and while testing I noticed that the actual averages seem to jump around the ...
gsitcia's user avatar
  • 3,301
25 votes

Totally Blind Chess

Just Everything Generates a list of every possibly legal move, shuffles it, then cycles through it repeatedly. Since there are only 1792 possibly legal moves, this will never forfeit due to the 2000-...
Brilliand's user avatar
  • 1,226
23 votes

xkcd 2385 KoTH (Final Exam)

Sam (Self-Aware Maximizer) Finds the output cybersecurity score that maximizes the total score including the own output in the mean. Assumes that the sum of all other bots' scores is going to be the ...
wimi's user avatar
  • 331
23 votes

xkcd 2385 KoTH (Final Exam)

getRandomNumber ...
Aaroneous Miller's user avatar
22 votes

A game of dice, but avoid number 6

NeoBot Instead, only try to realize the truth - there is no spoon NeoBot peeks into the matrix (aka random) and predicts if the next roll will be a 6 or not - it can't do anything about being handed ...
Mostly Harmless's user avatar
22 votes

Totally Blind Chess

Zombie March Slowly walks all its pieces forward across the board, in a random order (but favoring pawns). The first 5 moves sent specifically counter the scholar's mate. ...
Brilliand's user avatar
  • 1,226
22 votes

xkcd 2385 KoTH (Final Exam)

Max Max. { name: "Max", max: "max", run:(max)=> Math.max(...max) }
Razetime's user avatar
  • 27.1k
21 votes

xkcd 2385 KoTH (Final Exam)

Copycat Copycat is a dumb bot. Therefore, it's likely a random bot is smarter than it. Therefore, copying off another bot is a good idea. I think. ...
Rydwolf Programs's user avatar
20 votes

The Futuristic Gun Duel

Next, the most feared of all creatures, it's been to hell and back and fought with literally 900000 other bots, its... The BotRobot BotRobot was named, trained ...
ATaco's user avatar
  • 10.8k
20 votes

Formic Functions - Ant Queen of the Hill Contest

Forensic Ants All my answers are sharing the same set of low-level helper functions. Search for "High-level logic begins here" to see the code specific to this answer. ...
Dave's user avatar
  • 8,479
19 votes

Formic Functions - Ant Queen of the Hill Contest

Sliding Miners 6.4 ...
dzaima's user avatar
  • 20.2k
19 votes

Stack Exchange Stock Exchange - V3

Chimps On A Typewriter ...
Mayube's user avatar
  • 11.6k
18 votes

Gold Collector KoTH

Big King Little Hill | JavaScript ...
Mike Nichols's user avatar
18 votes

xkcd 2385 KoTH (Final Exam)

Histogrammer This bot keeps track of how often different averages have occurred, rounded to the nearest integer, to approximate their probability distribution. Using this, it attempts to choose the ...
DanTheMan's user avatar
  • 4,105
17 votes

Gold Collector KoTH

First Gen Learning Algorithm | JavaScript (Node.js) function run() { return ['north','east','south','west'][(Math.random()*4)|0]; } Try it online! Have you ...
Mayube's user avatar
  • 11.6k
17 votes

Robot Roulette: High stakes robot gambling

UpYours Being late to enter I spent a while admiring the existing bots, spent a while overcomplicating your guys' ideas, then un-overcomplicating them. Then it came to me Good artists copy, great ...
Qfwfq's user avatar
  • 371
17 votes

Totally Blind Chess

Scholar ...
histocrat's user avatar
  • 22.2k
17 votes

Cooperative Counting

Crab def strategy(last_results): return 1 Crab always stops counting, because it'd rather not get points than have the other bot beat it. It is because of Crab ...
user's user avatar
  • 307
16 votes

KOTH: Every coin has two sides

Oracle, Python 3 Update: changed the order of the various tries to favor low pile of coins over rotations. ...
301_Moved_Permanently's user avatar
16 votes

Snowball Fight KoTH!

Master, C# I trained a small neural network (using Sharpneat). It seems to like picking up snowballs and ducking... In a previous version of the controller, it even found a bug. It went from 0% ...
Manuel Allenspach's user avatar
16 votes

Gold Collector KoTH

Potentially Victorious | JavaScript Preferred color for this bot is #1600a6. ...
Ramillies's user avatar
  • 1,985
16 votes

Gold Battle KoTH

Unkillable forked from Undyable. ...
Draco18s no longer trusts SE's user avatar
16 votes

xkcd 2385 KoTH (Final Exam)

Follow the Leader Figure out which bot had the highest combined score last round, then do what they did. ...
MJ713's user avatar
  • 281
15 votes

Dollar Bill Auction

MimicBot ...
Nissa's user avatar
  • 3,624
15 votes

Robot Roulette: High stakes robot gambling

Kamikaze Why bother with complicated logic when we are all going to die anyway... def kamikaze(hp, history, ties, alive): return hp One shot It's going ...
DobromirM's user avatar
  • 323

Only top scored, non community-wiki answers of a minimum length are eligible