Add project files.

This commit is contained in:
2022-06-28 16:27:00 +02:00
parent b447579e84
commit 61be9cd8b0
18 changed files with 977 additions and 0 deletions

28
WinGreed/Dice.cs Normal file
View File

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WinGreed
{
public class Dice
{
public bool Chosen { get; set; } = false;
public int Number { get; set; }
public int DiceNumber { get; set; }
private Random rnd = null;
public Dice(int diceNumber)
{
rnd = new Random();
DiceNumber = diceNumber;
}
public int Roll()
{
Number = rnd.Next(1, 7);
return Number;
}
}
}