protected override void CheckValidate()
        {
            int min = HitNumbers.Min();

            if (this.AllowedChoiceNumber.Contains(min) == false)
            {
                Throw(min, "choice is not allowed");
            }
        }
Пример #2
0
        protected override void CheckValidate()
        {
            int min = HitNumbers.Min();
            var col = Number.GetColumn(min);

            if (col != Column.C1 && col != Column.C2)
            {
                Throw(min, "square hit can only C1, C2");
            }
        }
Пример #3
0
        protected override void CheckValidate()
        {
            int min = HitNumbers.Min();
            var col = Number.GetColumn(min);

            if (col != Column.C1)
            {
                Throw(min, "street hit can only C1");
            }
        }