Use mouse pointer to move. If it touches you, you lose 0.1 health. If it touches the sword, it loses 0.1 health. If it gets 0 health, you win. If you get 0 health, you lose.
Rules are same.