Step against more reasonable behavior , Handle rethrow , but the rethrow not ready
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user