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