Step against more reasonable behavior , Handle rethrow , but the rethrow not ready

This commit is contained in:
2022-07-06 22:46:47 +02:00
parent 4ab6461e4f
commit 298c4e94ad
5 changed files with 103 additions and 86 deletions

View File

@ -10,14 +10,16 @@ namespace WinGreed
{
public string Who { get; set; }
public int Score { get; set; }
//private List<Dice> _dices = new List<Dice>();
private List<Dice> _dices = new List<Dice>();
public List<Dice> Dices { get; set; } = new List<Dice>();
int roll;
public HandleThrow()
{
for (int i = 1; i < 7; i++)
{
_dices.Add(new Dice(i));
Dices.Add(new Dice(i));
}
roll = 0;
}
@ -26,7 +28,7 @@ namespace WinGreed
{
var rolled = new List<Dice>();
roll += 1;
foreach (Dice dice in _dices)
foreach (Dice dice in Dices)
{
if (!dice.Chosen)
{