Logging added points

This commit is contained in:
2022-07-14 16:52:42 +02:00
parent 903a9f99ce
commit 8aa46c3176
3 changed files with 41 additions and 8 deletions

View File

@ -23,6 +23,8 @@ namespace WinGreed
private HandleThrow _ht;
public string Player { get; set; }
public int TotPoints { get; set; }
public int AddedPoints { get; set; }
List<int> Points = new List<int>();
public frmPersonRound(string player)
{
@ -193,6 +195,7 @@ namespace WinGreed
actTxtBox.Refresh();
tempChsn += outPut.NumSum;
txtChosenPoints.Text = tempChsn.ToString();
AddedPoints = tempChsn;
if (((TextBox)this.Controls.Find($"txtMaxValue{row}", true).FirstOrDefault()).Text == actTxtBox.Text
&& int.Parse(actTxtBox.Text.Trim()) > 0
&& _ht.Dices.Count(x => x.Chosen == true) == _ht.Dices.Count)
@ -202,8 +205,8 @@ namespace WinGreed
}
}
numbers.ForEach(x => Debug.Write($"{x}, "));
Debug.WriteLine(" -");
//numbers.ForEach(x => Debug.Write($"{x}, "));
//Debug.WriteLine(" -");
return result;
}