Exemplo n.º 1
0
 public GameBuilder SetPlayer1(string nom, string color, IAStrategy strat = null)
 {
     P1 = (strat != null) ? (Player) new IAPlayer(nom, color, strat) : new HumanPlayer(nom, color);
     return(this);
 }
Exemplo n.º 2
0
 public IAPlayer(string name, string color, IAStrategy strat) : base(name, color)
 {
     IAStrategy = strat;
 }