Exemplo n.º 1
0
 public override void Play(Player player)
 {
     if(NumberOfPeopleWithBBQ==0)
         throw new InvalidOperationException("no BBW no game");
     base.Play(player);
 }
Exemplo n.º 2
0
 public decimal Calculate(Game game, Player player)
 {
     return 42;
 }
 public decimal Calculate(Game game, Player player)
 {
     if (player.Name == "Ayende")
         return 103012312;
     return 5;
 }
Exemplo n.º 4
0
 public decimal Calculate(Game game, Player player)
 {
     return 5;//chosen by a dice roll, guarnteed to be random
 }