the colwidths list to find out what integer width to pass to the rjust(string method zombie dice bots programming games are game genre where instead of playing game directlyplayers write bot programs to play the game autonomously 've created zombie dice simulatorwhich allows programmers to practice their skills while making game-playing ais zombie dice bots can be simple or incredibly complexand are great for class exercise or an individual programming challenge zombie dice is quickfun dice game from steve jackson games the players are zombies trying to eat as many human brains as possible without getting shot three times there is cup of dice with brainsfootstepsand shotgun icons on their faces the dice icons are coloredand each color has different likelihood of each event occurring every die has two sides with footstepsbut dice with green icons have more sides with brainsred-icon dice have more shotgunsand yellow-icon dice have an even split of brains and shotguns do the following on each player' turn place all dice in the cup the player randomly draws three dice from the cup and then rolls them players always roll exactly three dice they set aside and count up any brains (humans whose brains were eatenand shotguns (humans who fought backaccumulating three shotguns automatically ends player' turn with zero points (regardless of how many brains they hadif they have between zero and two shotgunsthey may continue rolling if they want they may also choose to end their turn and collect one point per brain if the player decides to keep rollingthey must reroll all dice with footsteps remember that the player must always roll three dicethey must draw more dice out of the cup if they have fewer than three footsteps to roll player may keep rolling dice until either they get three shotguns--losing everything--or all dice have been rolled player may not reroll only one or two diceand may not stop mid-reroll when someone reaches brainsthe rest of the players finish out the round the person with the most brains wins if there' tiethe tied players play one last tiebreaker round zombie dice has push-your-luck game mechanicthe more you reroll the dicethe more brains you can getbut the more likely you'll eventually accrue three shotguns and lose everything once player reaches pointsthe rest of the players get one more turn (to potentially catch upand the game ends the player with the most points wins you can find the complete rules at manipulating strings