public void doMove(Robot player, string theMove) { if (theMove == "block") player.Block (); else if (theMove == "unblock") player.UnBlock (); else if (theMove == "leftPunch") player.LeftPunch (); else if (theMove == "rightPunch") player.RightPunch (); else if (theMove == "leftKick") player.LeftKick (); else if (theMove == "rightKick") player.RightKick (); else if (theMove == "RocketLeftArm") player.RocketLeftArm (); else if (theMove == "RocketRightArm") player.RocketRightArm (); else if (theMove == "RocketLeftLeg") player.RocketLeftLeg (); else if (theMove == "RocketRightLeg") player.RocketRightLeg (); else if (theMove == "pickUp") player.Pickup (); }