Beispiel #1
0
 /// <summary>
 /// Verifie si le domino en parametre est adjacent au domino courant
 /// Deux dominos sont adjacents s'ils ont une valeur en commun!
 /// Attention: (2,6) est adjacent a (2,4) il faudra donc "tourner" (2,4)
 /// </summary>
 /// <param name="other">Le domino que l'on souhaite verifier </param>
 /// <returns>True si ils sont adjacents</returns>
 public bool IsAdjacent(Domino other)
 {
     return(other.Gauche == Gauche || other.Droite == Gauche || other.Gauche == Droite || other.Droite == Droite);
 }
Beispiel #2
0
 public Domino DominoSorti()
 {
     dominoSorti = Jeu[positionDomino];
     jeu.Remove(jeu[positionDomino]);
     return(dominoSorti);
 }