Here is the first round of programming for my fencer robot. I programmed it in NXC code. Right now, it's just going through a series of basic behaviors, like parry, extend, advance, etc. Then there are some compound behaviors at the end. The next step is to program the sensors to respond to the opponent, so the robot can decide when to make each action.