Learning how to beat the swordmaster