Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
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 [code-challenge].
3
votes
xkcd 2385 KoTH (Final Exam)
Greedy
Assumes that all other bot keep their scores the same as last round, and chooses a score that maximizes own_point - max(other_bots_points).
{
name: "Greedy",
run(scores){
let max_index …
6
votes
xkcd 2385 KoTH (Final Exam)
Chain estimator
Records the several latest averages, downsamples them, records the states, uses the history record to estimate the next average, and uses it to get the optimal score given the average. …
4
votes
7
answers
470
views
Time bomb (KoTH) [duplicate]
In this challenge, players need to tamper with a time bomb as late as possible without getting blasted in the face.
Mechanics
Let N be the number of bots plus one. Each round, each bot receives the fo …
4
votes
Time bomb (KoTH)
Some "basic" bots to get this started, also to serve as baseline (they will also play in the game):
{
name: "33%",
run(numbers) {
return numbers[Math.floor(numbers.length/3)];
}
}
{
name: …