Beispiel #1
0
 public void add(Domino d)
 {
     dominos.Add(d);
 }
Beispiel #2
0
 internal void Play(Domino d)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public void Add(Domino d)
 {
     handOfDominos.Add(d);
 }
Beispiel #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);
Beispiel #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));
 }
Beispiel #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="d"></param>
 public void Add(Domino d)
 {
     listofDominos.Add(d);
 }
Beispiel #7
0
 /// <summary>
 /// Add (Domino) -- This Adds a Domino to hand
 /// </summary>
 public void Add(Domino d)
 {
     this.handOfDominos.Add(d);
 }
Beispiel #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);
 }
Beispiel #9
0
 public void Play(Domino d) => this.dominos.Remove(d);
Beispiel #10
0
 public void Add(Domino d) => this.dominos.Add(d);
Beispiel #11
0
 public void Add(Domino d) => hand.Add(d);