예제 #1
0
 // Uses the indexof method in this class.
 public bool HasDomino(Domino c)
 {
     return(dominos.IndexOf(c) != -1);
 }
예제 #2
0
 // Just a puppet for the List.IndexOf() method.
 public int IndexOf(Domino c)
 {
     return(dominos.IndexOf(c));
 }
예제 #3
0
 // Add a card to the cards.
 public void AddDomino(Domino c)
 {
     dominos.Add(c);
 }