public void RedoSets() { SetList.ForEach(thisTemp => { thisTemp.HandList.ForEach(thisTile => { thisTile.IsUnknown = false; //to double check. thisTile.Drew = false; thisTile.IsSelected = false; }); }); }
private PointInfo CalculatePoints(int player) { PointInfo output = new PointInfo(); PointInfo temps; _model !.MainSets1 !.SetList.ForEach(thisSet => { temps = thisSet.GetPointInfo(player); output.Points += temps.Points; output.NumberOfCards += temps.NumberOfCards; }); return(output); }
public bool PlayedAtLeastOneFromHand() { CustomBasicList <int> tempList = new CustomBasicList <int>(); SetList.ForEach(thisTemp => { thisTemp.HandList.ForEach(thisTile => { tempList.Add(thisTile.Deck); }); }); TileRummySaveInfo saveRoot = cons !.Resolve <TileRummySaveInfo>(); foreach (var thisIndex in saveRoot.YourTiles) { if (tempList.Any(items => items == thisIndex)) { return(true); } } return(false); }