private void ParseGo(String line, string[] tokens) { switch (tokens[1]) { case "place_armies": this.Round++; var placeArmies = GoPlaceArmiesInstruction.Detokenize(tokens); this.Writer.Add(PlaceArmies(placeArmies)); break; case "attack/transfer": var attackTransfer = GoAttackTransferInstruction.Detokenize(tokens); this.Writer.Add(AttackTransfer(attackTransfer)); break; default: throw new NotSupportedException(line); } }
public abstract Instruction AttackTransfer(GoAttackTransferInstruction instruction);