コード例 #1
0
    public void FillRandomly()
    {
        int      randomIndex = UnityEngine.Random.Range(0, EmptyCells.Count);
        GridCell cell        = EmptyCells.ElementAt(randomIndex);

        cell.FillSelfWithRandomOption();
    }
コード例 #2
0
    public void FillLowestEntropy()
    {
        GridCell cellWithLeastOptions = EmptyCells.OrderBy(item => item.Options.Count).First();

        cellWithLeastOptions.FillSelfWithRandomOption();
    }