private void executeCommand(string command) { switch (command) { case "skip": this.ProcessTurn(); return; case "build barracks": this.ProcessTurn(); db.AddBuilding(new Barracks()); break; case "build archery": this.ProcessTurn(); db.AddBuilding(new Archery()); break; case "empire-status": this.ShowStatus(); this.ProcessTurn(); break; default: throw new ArgumentException("Invalid Command"); } }