/// <summary> /// EffacerLigne /// </summary> /// <returns></returns> public TetrisPieceList EffacerLigne() { int bonus = 1; TetrisPieceList tetrisPieces = new TetrisPieceList(); for (int y = -3; y < 19; y++) { if (PieceTombes.Count(p => p.Y == y) == 10) { Score += bonus; bonus *= 2; tetrisPieces.AddRange(PieceTombes.EffacerLigne(y)); } } return(tetrisPieces); }