King-of-the-hill indicates a game where the submissions interact with and compete against each other in some form of game. Competitions which pit programs against each other without interaction should rather use [tag:code-challenge].

learn more… | top users | synonyms

6
votes
1answer
189 views

Capture The Flag

This is a game of capture the flag, heavily inspired and based off of Red vs. Blue - Pixel Team Battlebots. That was an awesome question (thank you very much Calvin'sHobbies; I hope you don't mind ...
3
votes
7answers
476 views

King of the Hill: Robot Battle

Your task here is to write an AI for a simple robot battle. The class to be implemented is provided at the bottom of this post, and source of the controller can be found here. Requirements Write a ...
19
votes
6answers
510 views

That's BS! (card game)

BS is a card game where the object of the game is to lose all of your cards. A game consists of four players and a 52-card deck. Each player is randomly dealt 13 cards. Normally, cards are labeled 2 ...
88
votes
22answers
5k views

Red vs. Blue - Pixel Team Battlebots

This contest is officially over. The Blue Team won! I autoran two sets of 50 battles and amazingly, Blue won all 100 of them. Looking at the stats, it is clear that the cooperative entries of ...
15
votes
4answers
613 views

How to recover from DDOS'ed internet

The internet has failed. DDoS attacks are now rampant and widespread. It is up to you to take control and repair the internet. Each bot will control 20 nodes in this network. Every node is either ...
16
votes
14answers
995 views

The Nano Core War

This is an adaption of Core War, a programming KOTH dating back to the 20th century. To be more specific, it is using an incredibly simplified instruction set primarily based off of the original ...
6
votes
3answers
187 views

Topping the Charts

Topping the Charts You are a record label company. Your goal is to get 4 of your signed bands in the top 4 positions in the charts. However, its recently been noted that bands currently in the ...
12
votes
8answers
606 views

Water Balloon Wars

This king-of-the-hill game is a strategy game in which you must throw around a water balloon and avoid getting splashed by water. The goal is to obtain the most points. You will be given a map of the ...
15
votes
9answers
486 views

KOTH : Monster Hunter

Updated Results Introduction To celebrate Monster Hunter 4 Ultimate launch on new 3DS (February 13th), here's a King of the Hill themed on this game. You are a novice hunter, who'll take part in a ...
15
votes
2answers
415 views

Food shortage in the Snakepit

Food shortage in the Snakepit For the first time in 35 years, the snakepit is running out of food. The inhabitant snakes now have to fight each other in order to survive this food shortage. Only one ...
20
votes
9answers
887 views

Grid-Routing Battle

See the bottom of the post for a leaderboard. This is a semi-cooperative king-of-the-hill challenge, where the bots construct paths through a two-dimensional grid graph. The bot who controls the ...
3
votes
0answers
78 views

Rock Paper Scissors with a twist [duplicate]

The challenge This challenge is going to be a classic king of the hill game of RPS. You must write a program that takes two command line arguments, a string of all the moves that you have made, and a ...
26
votes
21answers
3k views

Morra, the Noble Game of Kings

Background The game of Morra is a simple game. In the "original" version, several players simultaneously throw out a number 0-5 with their hands while guessing the total sum of everyone's hands. ...
50
votes
9answers
4k views

Codémon, I choose you!

Your kindly neighbour, Doctor Tree, just gave you three magical creatures called Codémon. There's a battle tournament in the nearby town of Colorville. Are you the very best, like no one ever was? ...
8
votes
8answers
449 views

Keep your distance on a circle

This is based on this challenge and Geobits's/CarpetPython's idea to improve it: Keep your distance! For this challenge, the distance between two numbers is measured on a loop, so, for example, the ...
1
vote
0answers
98 views

KOTH: Number fight [closed]

Number fight game Setup Each ai is given a random number from 1 to 100. The starting number is the average of these two numbers. Gameplay Each ai knowing its own target, the opposite target ...
19
votes
13answers
1k views

KOTH: Warring Towns

Final results are here ! Introduction The game takes is strongly inspired by Manu's Game of Town. It takes place in a world of swords and magic. The king who ruled the whole continent just died, and ...
14
votes
18answers
2k views

Keep your distance!

Every player has a number. Can yours be the farthest from them all? Requirements Write a Java, Python 2, or Ruby function named choose() that accepts three arguments: an integer - the number of ...
32
votes
15answers
1k views

The Game of Towns

Introduction The game takes place in a small world with different towns. The rulers of the towns hate each other and would like to rule the world. The people are divided into two groups, warriors and ...
13
votes
9answers
1k views

Treasure Hunting on a Deserted Island

Introduction You are stranded on a deserted island with some servants and are hunting for treasure. The longer one searches, the more treasure one finds. The fewer people searching, the more each ...
14
votes
4answers
668 views

Scriptbot Warz!

Scriptbot Warz! The results are in and Assassin is our champion, winning 2 of 3 matches! Thanks to everyone who submitted their Scriptbots! Special thanks to horns for BestOpportunityBot which ...
5
votes
4answers
1k views

Penalty Shootout

Penalty shootout Welcome to CG world cup. Your job: Code a penalty shooter and goal keeper! Rules of the game: The goal is 700 cm wide and 200 cm tall. If I have to make a rectangle out of it, ...
10
votes
16answers
1k views

CodeBots 2: Event Driven Design

Welcome to Code Bots 2! You've learned your lesson since the last Code Bots. You've tried to figure out more ways to fit more actions in less lines, and now you finally have it. You're going to ...
15
votes
9answers
1k views

Chess Tournament

This is a chess-KOTH with simplified rules (because chess itself is already complicated, playing it via a simple program doesn't make it easier). At the moment it is limited to java (version 8), but ...
31
votes
46answers
4k views

What's wrong with public variables?

Code Bots I hate private and protected variables. I just want to access anything and everything! If you are like me, then this challenge is for you! Write a bot that works together in harmony with ...
78
votes
58answers
9k views

BrainF***edBotsForBattling - A Brainf*** Tournament

All bots at the battle arena suddenly got brainfucked and no one can explain why. But who cares as long as they are still able to fight - although Brainfuck is the only language they understand ...
34
votes
24answers
4k views

Stack Exchange Stock Exchange ~ Revised

Background You are all traders for a slightly less than reputable stock firm. You all are part of a group of traders who focus only on one specific stock. Each hour each trader has a chance to Buy X ...
18
votes
8answers
2k views

Traders to the Death

You are a foreign trader, hoping to make a profit. There are 5 goods people wish to trade: Apricots, Boars, Canaries, Daffodils, and Earwigs. Starting in the winter, you need to decide what to ...
3
votes
1answer
493 views

Stack Exchange Stock Exchange Tournament [closed]

Introduction Greetings fellow traders, you have just entered the Stack Exchange stock exchange. Here you will compete to earn the money by buying and selling shares (unfortunately, we only have the ...
46
votes
40answers
7k views

Four-Man Standoff

4-Man Standoff Description You've somehow found yourself into a four-way standoff. A loaded gun rests in your hands, and some grenades are hooked on your belt. The objective is to have the most ...
27
votes
7answers
2k views

Programming Pac-Man

Programmin' Pac-Man Setting You play as Pac-Man. You want to collect pellets, fruit, and power pellets before anybody else, all while avoiding ghosts. Rules Every valid Pac-Man will be in a ...
28
votes
9answers
4k views

3D: Discrete Dogfighting Duel (Now open to non Java submissions)

UPDATE: isSuicidal() was added to the plane class, this allows you to check if a plane is on an irreversible collision course with the walls!! UPDATE: updateCoolDown() separated from simulateMove() ...
86
votes
77answers
12k views

The Rock, Paper, Scissors, Lizard, Spock Tournament of Epicness

Most Recent Leaderboard @ 2014-08-02 12:00 | Pos # | Author | Name | Language | Score | Win | Draw | Loss | Avg. Dec. Time | ...
126
votes
55answers
11k views

Caveman Duels (or: Me poke you with sharp stick)

Caveman mad. Other caveman take stick but stick was for me. Caveman fight! Description Caveman need sharp stick to stab other caveman. Other caveman also try to stab with sharp stick. Caveman ...
16
votes
6answers
1k views

Slime: The Territory War

You are a glob of slime. Naturally, being slime, you want to ooze over as much area as possible. But there are 3 other slimes who want to do the exact same thing. Who will be the superior slime? ...
43
votes
22answers
4k views

Save the last bullet for yourself

The contest is now over. Coward is the winner. You can watch the last match here. Suddenly zombies appear! OH NOES! In this king-of-the-hill challenge, you must create a bot to survive the ...
15
votes
6answers
1k views

Let's have a tank war!

Let's have a tank war! Partially inspired by Destroy Them With Lazers Objective Your task is to control a tank. Move around and shoot other tanks and obstacles in the 2D battlefield. The last tank ...
31
votes
9answers
1k views

Battle for the Petri Dish

In this challenge, you must design a species of single-celled organisms to fight to the death in the petri-dish arena. The arena is represented as a rectangular grid, where each cell occupies one ...
104
votes
92answers
16k views

Good Versus Evil

Results - July 19, 2014 The current King of the Hill is Mercenary by user Fabigler! Keep submitting entries and knock him off of his throne! Click here to view the Scoreboard. Programs submitted on ...
89
votes
45answers
8k views

Survival Game - AlienWar

AlienWar This game takes place in a very crowded planet where aliens are the superior race. Your task is to create your own alien and beat all other. The Board It is a 2 dimensional board. The ...
11
votes
0answers
727 views

Design and Solve a Maze [on hold while sandboxing]

Your task is to play the roles of both characters in this scene from Inception. In it, Cobb gives Ariadne a challenge: You have two minutes to design a maze that takes one minute to solve. Some ...
21
votes
6answers
1k views

Hot Potato Salesman

Given a list of points, find the shortest path that visits all points and returns to the starting point. The Travelling Salesman Problem is well-known in the computer science field, as are many ...
15
votes
6answers
1k views

Prisoner's Dilemma v.2 - Battle Royale

In this question, a game was devised in which players would face each other off pair by pair in the Prisoner's Dilemma, to determine which iterative strategy scored the highest against others. In ...
10
votes
8answers
1k views

King of the Walls

Notice This challenge has ended and will not be re-judged, but feel free to post answers and test your program against the others with the Control Program! The aim of this challenge is to ...
16
votes
4answers
820 views

The Easter Egg Hunt on the Hill

Easter Egg Hunt Bot find egg before bunny find egg. Bot happy. Overview This is a king-of-the-hill challenge in honor of Easter and the Easter egg hunting tradition! Your bot has a vision of two ...
55
votes
9answers
3k views

Hunger Gaming - Eat or Die

Hunger Gaming - Eat or Die If you don't eat, you die. If you eat, you live (until you die). You will die, so try to die last. Overview There is an island populated with a herd of prey animals. You ...
22
votes
5answers
1k views

King of the Hill: Speed Clue AI

Speed Clue Cluedo/Clue is a classic board game with a compelling deduction gameplay component. Speed Clue is a 3-6 player variant that emphasizes this component by using only the cards. The result ...
186
votes
52answers
25k views

Survival Game - Create Your Wolf

The Board The Board is a two dimensional array of cells. Cells are populated by Animals. Every day, all Animals on the Board simultaneously make one move. If two or more Animals move to the same ...
62
votes
18answers
4k views

BattleBots: The Tournament

The results are in, the contest is over. The winner is arshajii's EvilBot with 14 wins ahead of Neo-Bot with 13 wins and CentreBot and LastStand with 11 wins each. Scores from the final run ...
15
votes
3answers
985 views

The Tic-tac-toe Games

Create a deterministic program to play nd tic-tac-toe with the other contestants. Your program should work when n (width) and d (dimension number) are in these ranges: n∈[3,∞)∩ℕ ie a natural ...