Merge pull request 'fix-#64' (#77) from fix-#64 into main
continuous-integration/drone/push Build is passing Details

Reviewed-on: #77
pull/78/head
Alexis Drai 2 years ago
commit c6f3b0ad47

@ -5,15 +5,13 @@ using Model.Dice.Faces;
namespace Model.Dice
{
public abstract class AbstractDie<T> where T : AbstractDieFace
public abstract class AbstractDie<T> : RandomnessHaver where T : AbstractDieFace
{
protected string Name;
public IEnumerable<T> ListFaces => listFaces;
private readonly List<T> listFaces = new();
private static readonly Random rnd = new();
protected AbstractDie(string name, params T[] faces)
{
Name = name;

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.Dice
{
public class RandomnessHaver
{
protected RandomnessHaver()
{
}
protected static readonly Random rnd = new();
}
}
Loading…
Cancel
Save