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 | |--------------------|-------------------------------| | LymiaAluysia | NyurokiMagicalFantasy - 600 | | Sylwester | LethalLokeV2.1 - 585 | | weston | MickeyV4 - 584 | | Sp3000 | YandereBot - 538 | | Comintern | CounterPunch - 512 | | Sylwester | BurlyBalderV3 - 507 | | LymiaAluysia | NestDarwin - 493 | | IstvanChung | Bigger - 493 | | Manu | DecoyMaster - 489 | | archaephyrryx | Wut - 478 | | DLosc | LightfootPlodder - 475 | | archaephyrryx | 99BottlesOfBats - 461 | | Sylwester | TerribleThorV2 - 458 | | MikaLammi | WallE2.0 - 443 | | Mikescher | MultiVAC - 441 | | archaephyrryx | Twitcher - 439 | | Timtech | MetalDetector - 438 | | AndoDaan | BeatYouMate - 433 | | csarchon | TheWallmaster - 427 | | Sparr | SeeSawRush - 412 | | archaephyrryx | Stitcher - 406 | | PhiNotPi | RandomOscillator - 403 | | ccarton | AnybodyThere - 398 | | Comintern | 2BotsOneCup - 392 | | kaine | SternBot - 387 | | PhiNotPi | EvoBot2 - 385 | | PhiNotPi | EvoBot1 - 381 | | Brilliand | TimedAttack - 373 | | Sylwester | ReluctantRanV2 - 373 | | AndoDaan | PrimesAndWonders - 359 | | Nax | TruthBot - 357 | | DLosc | Plodder - 356 | | weston | FastTrapClearBot - 345 | | MikaLammi | PolarBearMkII - 340 | | Sp3000 | ParanoidBot - 336 | | Moop | Alternator - 319 | | TestBot | FastClearBot - 302 | | icedvariables | PyBot - 293 | | TestBot | DecoyBot - 293 | | kaine | BestOffense - 291 | | Geobits | Backtracker - 289 | | bornSwift | ScribeBot - 280 | | IngoBuerk | Geronimo - 268 | | flawr | CropCircleBot - 239 | | plannapus | CleanUpOnAisleSix - 233 | | frederick | ConBot - 230 | | frederick | 128Bot - 222 | | AndoDaan | EndTitled - 219 | | PhiNotPi | CloakingDeviceBot - 215 | | AndoDaan | GetOffMate - 206 | | DLosc | ScaredyBot - 205 | | isaacg | CleverAndDetermined - 202 | | PhiNotPi | CantTouchThis - 202 | | Moop | StubbornBot - 174 | | Cruncher | StallBot - 168 | | IngoBuerk | Gambler - 157 | | BetaDecay | RussianRoulette - 129 | | flawr | DoNothingBot - 123 | | SebastianLamerichs | Dumbot - 115 | | mmphilips | PacifistBot - 112 | | SeanD | DontUnderstand - 92 | | proudHaskeller | PatientBot - 83 | | frederick | Dumberbot - 70 | | flawr | MetaJSRandomBot - 68 | | Darkgamma | TheRetard - 61 | | BetaDecay | Roomba - 61 | | BetaDecay | PrussianRoulette - 31 | | frederick | Dumbestbot - 0 |
Scores from 09.10.2014 - Next update maybe in the far future with more bots
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.