You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
442 B
23 lines
442 B
using System;
|
|
using System.Collections.Generic;
|
|
using Model.Dice.Faces;
|
|
|
|
namespace Model.Dice
|
|
{
|
|
public class Die
|
|
{
|
|
private static readonly Random random = new Random();
|
|
|
|
private List<AbstractDieFace> faces;
|
|
|
|
public AbstractDieFace Throw()
|
|
{
|
|
// next(x, y) --> [x, y[
|
|
return faces[random.Next(0, faces.Count)];
|
|
// replace with better algo later
|
|
}
|
|
}
|
|
|
|
|
|
}
|