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 anymore.
| Owner | Bot Score | |--------------------|-------------------------------| | Sylwester | LethalLokeV2.1 - 570 | | LymiaAluysia | NyurokiMagicalFantasy - 562 | | weston | MickeyV4 - 538 | | Sp3000 | YandereBot - 509 | | Comintern | CounterPunch - 505 | | Sylwester | BurlyBalderV3 - 505 | | LymiaAluysia | NestDarwin - 493 | | Sylwester | TerribleThorV2 - 463 | | DLosc | LightfootPlodder - 461 | | IstvanChung | Bigger - 459 | | Manu | DecoyMaster - 456 | | Timtech | MetalDetector - 434 | | Mikescher | MultiVAC - 425 | | MikaLammi | WallE2.0 - 419 | | AndoDaan | BeatYouMate - 415 | | csarchon | TheWallmaster - 407 | | ccarton | AnybodyThere - 406 | | Sparr | SeeSawRush - 396 | | PhiNotPi | RandomOscillator - 383 | | Comintern | 2BotsOneCup - 380 | | Sylwester | ReluctantRanV2 - 377 | | kaine | SternBot - 364 | | PhiNotPi | EvoBot1 - 363 | | PhiNotPi | EvoBot2 - 362 | | AndoDaan | PrimesAndWonders - 360 | | Brilliand | TimedAttack - 356 | | DLosc | Plodder - 348 | | Nax | TruthBot - 346 | | MikaLammi | PolarBearMkII - 322 | | Sp3000 | ParanoidBot - 317 | | Moop | Alternator - 308 | | weston | FastTrapClearBot - 305 | | icedvariables | PyBot - 294 | | TestBot | FastClearBot - 285 | | kaine | BestOffense - 280 | | TestBot | DecoyBot - 274 | | Geobits | Backtracker - 269 | | IngoBuerk | Geronimo - 252 | | AndoDaan | EndTitled - 247 | | frederick | ConBot - 240 | | frederick | 128Bot - 239 | | flawr | CropCircleBot - 228 | | bornSwift | ScribeBot - 224 | | plannapus | CleanUpOnAisleSix - 218 | | PhiNotPi | CantTouchThis - 207 | | PhiNotPi | CloakingDeviceBot - 198 | | DLosc | ScaredyBot - 195 | | isaacg | CleverAndDetermined - 183 | | Cruncher | StallBot - 175 | | Moop | StubbornBot - 170 | | AndoDaan | GetOffMate - 165 | | IngoBuerk | Gambler - 155 | | BetaDecay | RussianRoulette - 134 | | flawr | DoNothingBot - 130 | | SebastianLamerichs | Dumbot - 125 | | mmphilips | PacifistBot - 116 | | SeanD | DontUnderstand - 107 | | proudHaskeller | PatientBot - 75 | | flawr | MetaJSRandomBot - 68 | | frederick | Dumberbot - 68 | | BetaDecay | Roomba - 67 | | Darkgamma | TheRetard - 61 | | BetaDecay | PrussianRoulette - 30 | | frederick | Dumbestbot - 0 |
Scores from 22.09.2014 - Next update on friday
EDIT6: Discarded logs due to extreme size and runtime. You can generate them yourself by uncommenting the lines in
EDIT5: Implemented Abbreviation handling into the controller, no huge runtimes anymore. This has the side effect that numbers and parentheses are not treated as comments anymore. You can still use them if you want to provide an annotated version, but it would be very helpful if there would be also an uncommented version of your code, so I don't need to remove the comments manually. Thanks!
EDIT4: Changed the title, because the tournament got removed from the hot network questions. Thanks to @Geobits for pointing this out!
EDIT3: Removed comments in bf programs, due to an unexpected result, should be fixed now. If anyone has a problem with removing his comments, please report.
EDIT2: Since it caused an arcane runtime on my quite slow computer, I reduced the timeout limit from 100000 cycles to 10000 cycles. Not that anyone has turned the resultof a running game beyond this point anyway.
EDIT1: Fixed a bug in the convert script causing the interpreter to not ignore numbers in commented programs.
This is a Brainfuck tournament inspired by BF Joust. Two bots (Brainfuck programs) are fighting each other in an arena which is represented by a memory tape. Each cell can hold values from -127 up to 128 and wrap at their limits (so 128 + 1 = -127).
Valid instructions are similiar to regular Brainfuck, which means:
+ : Increment cell at your pointer's location by 1 - : Decrement cell at your pointer's location by 1 > : Move your memory pointer by 1 cell towards the enemy flag < : Move your memory pointer by 1 cell away from the enemy flag [ : Jump behind the matching ']'-bracket if the cell at your pointer's location equals 0 ] : Jump behind the matching '['-bracket if the cell at your pointer's location is not 0 . : Do nothing
The arena has a size of 10 to 30 cells which is pseudorandomly chosen each battle. At both ends is a 'flag' located which has an initial value of 128, while all other cells are zeroed. Your bot's goal is to zero the enemy's flag for 2 consecutive cycles before he zeroes your own flag.
Each bot starts at his own flag, which is cell  from his own perspective. The opponent is located on the other side of the tape.
[ 128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 128 ] ^ ^ my bot other bot
Both bots execute their action simultaneously, this is considered one cycle. The game ends after 10000 cycles or as soon as one of the winning conditions is reached. If one of the programs reaches its end, it simply stops doing anthing until the end of the game, but can still win.
Your bot wins under one of the following conditions:
- Your enemy's flag is zeroed before yours
- Your enemy moves his pointer out of the tape (executes
>on your flag or
<on his own)
- Your flag's value is more far away from 0 than the value of your opponent's flag after 10000 cycles
Your post should contain a name for your bot and its code.
- You can use the following abbreviation syntax to make your code more readable:
(+)*4is the same as
++++, this is valid for any instruction except unmatched brackets in parentheses since the loop logic collides with the abbreviation logic. Please use
- Every other character than
+-><.is a comment and therefore ignored, except
Bots which do not follow the rules will excluded from the tournament.
- Only basic Brainfuck is allowed, no other variants which supports procedures or arithmetic operations
- Your bot's source code should not contain unmatched brackets
You may inform yourself about basic strategies but do not use another one's code for your own bot.
A bot's score is determined by the number of wins against all other bots. An encounter between 2 bots consists of 10 matches with different memory tape lengths, which results in a maximum score of 10 points per encounter. A draw results in no points for this match.
You can find the control program on github, along with the full logs from the battles. The leaderboard will be posted here once it is generated.
Feel free to clone the repository and try your bot against the others on your own. Use
python Arena.py yourbot.bf otherbot.bf to run a match. You can modify the conditions with the command-line flags
-t. If your terminal does not support ANSI escape sequences, use the
--no-color flag to disable colored output.
(>)*9 Since the tape length is at least 10, the first 9 cells can be easily ignored ([ Find a non-zero cell +++ Increment at first, since it could be a decoy [-] Set the cell to zero ]> Move on to the next cell )*21 Repeat this 21 times
>(+)*10 Set up a large defense in front of your flag >(-)*10 Set up another one with different polarity (>+>-)*3 Create some small decoys (>[-] Move on and set the next cell to zero . Wait one round, in case it is the enemy's flag )*21 Repeat this 21 times
The DecoyBot will win every match with a tape length greater than ten, since the FastClearBot can avoid the small decoys, but not the larger ones. The only situation in which the FastClearBot can win against DecoyBot, is when it is fast enough to reach the enemy's flag before his opponent has built up large decoys.