コード例 #1
0
        //Protected Methods
        protected bool MarkEyeWhites(DataCell cell)
        {
            Random rand = new Random(DateTime.Now.Millisecond);

            if (cell.IsEye() && cell.Color == CellColor.WHITE)
            {
                cell.Marks.Add(Keys.Role, Values.YellowCircle);

                if (cell.UpCell().Color != cell.DownCell().Color)
                {
                    double rand_value = rand.NextDouble();
                    if (rand_value > 0.5)
                    {
                        cell.Marks[Keys.Role] += Values.RedDashedCircle;
                    }
                }

                return(true);
            }
            else
            {
                return(false);
            }
        }