Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Stones by tom-tom
def stones(pile, moves):
lost = {1}
for stones in range(2, pile + 1):
if all(move > stones or stones - move not in lost for move in moves):
lost.add(stones)
return 2 if pile in lost else 1
April 11, 2019