Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
as simple as greedy: often doesn't work! solution in Creative category for Unfair Dice by flpo
def winning_die(enemy):
*player, gt = enemy
n_dices = len(player)
for i in range(gt - 1):
player[i % n_dices] += 1
player.append(1)
return player * (sum((p > e) - (p < e) for p in player for e in enemy) > 0)
Dec. 29, 2017
Comments: