Exemplo n.º 1
0
 public void add(Domino d)
 {
     dominos.Add(d);
 }
Exemplo n.º 2
0
 internal void Play(Domino d)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public void Add(Domino d)
 {
     handOfDominos.Add(d);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Determines whether a hand can play a specific domino on this train and if the domino must be flipped.
 /// Because the rules for playing are different for Mexican and Player trains, this method is abstract.
 /// </summary>
 public abstract bool IsPlayable(Hand h, Domino d, out bool mustFlip);
Exemplo n.º 5
0
 /// <summary>
 ///****overrides abstract IsPlayable***
 /// </summary>
 /// <param name="h"></param>
 /// <param name="d"></param>
 /// <param name="mustFlip"></param>
 /// <returns></returns>
 public override bool IsPlayable(Hand h, Domino d, out bool mustFlip)
 {
     return(IsPlayable(d, out mustFlip));
 }
Exemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="d"></param>
 public void Add(Domino d)
 {
     listofDominos.Add(d);
 }
Exemplo n.º 7
0
 /// <summary>
 /// Add (Domino) -- This Adds a Domino to hand
 /// </summary>
 public void Add(Domino d)
 {
     this.handOfDominos.Add(d);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Play - Plays a domino on a train
 /// </summary>
 /// <param name="d">Domino </param>
 /// <param name="t">Train</param>
 public void Play(Domino d, Train t)
 {
     t.Play(d);
 }
Exemplo n.º 9
0
 public void Play(Domino d) => this.dominos.Remove(d);
Exemplo n.º 10
0
 public void Add(Domino d) => this.dominos.Add(d);
Exemplo n.º 11
0
 public void Add(Domino d) => hand.Add(d);