last day (15 days later) » 

14:51
31
Q: Let's Play Mafia!

ChristopherMafia (also known as Werewolf) is a party game that plays roughly like this: The game begins on day 0. After every day n comes a night n. After every night n comes a day n+1. i.e. D0, N0, D1, N1, D2, N2... At the dawn of day 0, a host secretly chooses players to fill certain roles:   Some num...

Can the doctor heal himself?
@Java only one time
How many bots can I submit?
How will you handle compiled languages like C? I can supply a Makefile.
Can I do shenanigans to the players file, like calling sed to delete a dead player from it?
What is the max length of a bot name?
@Blacksilver KOTHs, by default, have no limits on how many you can submit. Also, messing with player files is a loophole iirc.
@Blacksilver the challenge makes it pretty clear. You need to be able to supply a file with the bot's code, and a run file that runs it. Maybe a binary for the first one, and the run file should just have ./your_bot?
I'll only mess with my own players file, promise
14:51
Good luck and have fun, everybody :)
how to make 8 year long koth: extend to implement all of these xD
The controller might break if the bot name includes spaces; you might want to make a rule about that? idk
@Blacksilver compiled languages need to be able to be run multiple times without having to be compiled each time, you can submit as many bots as you want, max bot name length is anything within reason, please don't have spaces in your name
@HyperNeutrino that goes under the reserved right to boot bots for being a "dick"
@Christopher By "max bot name length" I meant "How much memory should I allocate?"
@tfbninja who knows
Didn't downvote (but didn't upvote either), because it does seem as though you've taken undergroundmonorail's hard work and claimed it as your own (yes I know it was gifted to whoever wanted it), rather than create your own interesting challenge.
14:51
I downvoted this challenge because it doesn't seem very interesting, and there's still a lot to be clarified, like: when does the day end?
@RamenChef The day ends at the end of the day cycle. (that does sound like a useless statement, but note this: after 50 communication/vote cycles (that is, after each bot acts 50 times), the elected lynching happens which marks the end of the day cycle / the start of the nigh cycle)
@carid never meant to seem that I wrote it. I did say explicitly that I adopted it.
@Christopher2EZ4RTZ I know, but doesn't it seem a bit harsh to DQ bots and call them being dicks when you never mention anything about it in the first place? A lot of people could make the honest mistake of having a space in their folder name...
@hyper opps. Meant to remove the comment. But it does say in rules alphanumeric.
oh ok, thanks for specifying that. lol sorry, I must've missed that because long post and I can't read :p
14:51
@Christopher2EZ4RTZ If I understand correctly my bot run 50 times a day, Is it allowed to create and write into a file, to save some data, between runs?
I'm a bit confused. The example bot uses print statements, but the challenge body says things about file i/o?
Are the contents of to_server cleared when the controller reads and applies them?
I'd highly recommend cleaning up the msgs to make them shorter and easier to parse. (i.e. Day 0 \n No vote \n You are [villager|cop|mafia|doctor])
@Riker we could have the Controller do that if it finds a file called do_short (or whatever) in the bots WD...
I wrote a wrapper script for compiled languages: blacksilver.xyz/mafia
@Blacksilver eh, not a huge deal though. It's a bigger issue that this challenge isn't finished, and really should be closed.
@Blacksilver I added the wrapper to the post for you.
@HyperNeutrino lol I’m an avid town player :) my player will basically behave like a Survivor
@JavaScriptCoder But how do neutrals work in this game when people have to win with their faction? D: :P
14:51
Haha no it’s not going to be a neutral, it’s just going to eliminate anyone that accuses it of being suspicious
@Riker ok for the making msgs readable and easier to parse, nope. It will make the results more fun to read
also the bot code is fixed,
@Christopher2EZ4RTZ yeah, I realized that after, tha'ts fine. Could use some more explanation of how the "50 msgs per day" thing works.
Every day there is a 50 time loop, that means, every day your code run 50 times, it is more like a talking period for bots, you can vote more then one time, but your last vote gonna be a final one. main.py line: 194: after 50 time loop is over the program count the votes. (read player.vote property) and most voted player is killed. It is calculated with max what means if 50% of the player voted for None, nobody is killed.
Funny part is: example: 10 player in game: 5 player voted with none, 4 player voted to player1 1 player voted to player2 nobody dies. (40% try to kill somebody) , BUT if 3 player vote to player1 2 player to none 2 player to player2 2 player to player3 1 player to player4 they kill player1 with 30% votes
Can my run.sh be sudo rm -drf /?
@stan can you not waste my time?
14:51
@4RTZ Forgot, no sense of humour here. Also apparently cannot ignore something that bothers you. Curious
@stan it is against rules in the challenge, and standard loopholes
@Christopher2EZ4RTZ I had honestly forgotten that deleting the system was not allowed, many thanks
Which directory can we assume this will be run from, or do we just use relative locations?
Also, what OS can we assume this challenge will be run on @Christopher2EZ4RTZ
@StanStrum relative, windows using the built in VM bash ubuntu
Is there a newline between the words "Your allies are:" and the name of the first mafioso?
@ppperry yes (assuming op hasn't made changes to a local version of the controller)
14:51
Are bots allowed to output a trailing newline?
Jo.
Jo.
During the 50 actions, how will the from_server file work? Does it have all the messages that have been 'said' since the last time my bot was run, or does it have all of them that have been said this day?

last day (15 days later) »