예제 #1
0
파일: main.py 프로젝트: Anavros/dungeon
def step_fight(character, monster):
    char = character.copy()
    mons = monster.copy()
    if crunch.first_moves_first(char, mons):
        mons = crunch.damage(mons, char)
        char = crunch.damage(char, mons)
    else:
        mons = crunch.damage(mons, char)
        char = crunch.damage(char, mons)

    return (char, mons)