It's my 17th birthday and you're invited to my party!
And as always at parties, there will be cake.
One cake...
And you need as much of it as possible.
As this is a fair party, each of us will say how much of my cake we want and the person who said the smallest amount will get it. Then everyone else gets to repeat the process until the cake is gone.
Challenge
- Given the input through command line arguments in the form of
total-degrees degrees-left total-people people-left
, output to standard outputinteger-bid-in-degrees
. - If your bid was the lowest, you receive that amount of cake and are out for the round.
- If your bid wasn't lowest, your bot gets to bid on the remaining cake.
- In the case that the lowest bids are the same, the person removed will be chosen at random.
- At the end of a round, once all the cake is gone or there is nobody left to bid on it, the person with the most cake wins!
- In the case at the end of a round and two people have the same sized biggest slice, the winner is chosen at random from the drawing entries.
Gameplay
- There will be 17 rounds, the overall winner will be the entry with the most wins overall.
- In the case of a draw, rounds will be played until there is a clear winner.
- Each day, I will update the current scores so that people can upgrade their entry.
Submission
You should write your entry as
Bot Name, Language
Insert Code Here
Explanation/Random stuff here
If your entry isn't formatted in this way, the controller will NOT be able to run your entry. If I find this has happened to your entry, I will either notify you in a comment, and/or edit the answer into the correct format.
Your entry and file storage
- Your bot may store files in the
./data/
directory and nowhere else.- Not required but please store your files as
botname*
- You may not write files in this format if
botname
is not your entries name. - This means you are allowed to overwrite other files you find that don't appear in this format. You shouldn't do this deliberately, please be sporting.
- Your bot must not assume that the files it requires are present but it can assume
./data/
exists. - This is because I occasionally wipe the
./data
directory, I will do this when the rounds actually start. (But not between them)
- Not required but please store your files as
- Your bot may not delete files at all
- Your bot is only allowed to read files in the
./data/
directory- This means you may look at other entries files
Results:
Meek won the contest! Well done @Cabbie407
And now for some random stats:
A list of positions each bot came in: (Well done to any bot appearing in this list, you came in the top 5 at least once!)
Meek, Meek, Eidetic, Eidetic, Meek, Eidetic, Eidetic, Meek, Meek, Meek, Saucy, Meek, Givemethecake, Givemethecake, Givemethecake, Meek, Eidetic
Eidetic, Eidetic, Meek, AlCakeSurfer, Eidetic, AlCakeSurfer, Meek, MyFairPlusAThird, Eidetic, Eidetic, Eidetic, Eidetic, MyFairPlusAThird, MyFairPlusAThird, Meek, MyFairPlusAThird, AlCakeSurfer
Reallythecake, AlCakeSurfer, AlCakeSurfer, Meek, AlCakeSurfer, Meek, AlCakeSurfer, AlCakeSurfer, Reallythecake, AlCakeSurfer, Meek, MyFairPlusAThird, Eidetic, Eidetic, Eidetic, Eidetic, Reallythecake
AlCakeSurfer, Reallythecake, MyFairPlusAThird, MyFairPlusAThird, MyFairPlusAThird, MyFairPlusAThird, MyFairPlusAThird, Eidetic, AlCakeSurfer, MyFairPlusAThird, MyFairPlusAThird, Relinquisher, Relinquisher, bill, bill, Relinquisher, MyFairPlusAThird
bill, MyFairPlusAThird, bill, bill, bill, bill, Relinquisher, Relinquisher, MyFairPlusAThird, Relinquisher, bill, Reallythecake, bill, ALittleOffTheTop, ALittleOffTheTop, bill, bill
The full log file for the cometition whilst running can be found here. Sorry about the format change partway through.
I will not be running the contest again, if you want to post more entries, you're welcome to do so, the controller can be found on my github repo for this contest.
{u'StatelyImitator': 719, u'Dieter': 4, u'Reallythecake': 0, u'Greedy': 0, u'Meek': 2, u'FlamingChainsaw': 0, u'Slim': 0, u'CharityBot': 0, u'Gentleman': 297, u'ALittleOffTheTop': 256, u'EatThe\u03c0': 0, u'Pig': 0, u'CakeEater': 330, u'BobBarker': 0, u'FloorBot': 5, u'Fatbot5000': 296, u'Moses': 360, u'Magician': 720, u'Hungry': 257, u'Imitator': 354} [u'Magician']
. If your bot has a score of 0, it's doing something wrong. \$\endgroup\$