Example #1
0
        public EnumForResult.Result CheckRow()
        {
            int j = 0, resultCount = 1;

            EnumForResult.Result result = EnumForResult.Result.INPROGRESS;

            for (int i = 1; i < board.GetBoard().Length; i++)
            {
                if (!board.GetBoard()[j].Equals("-"))
                {
                    if (++resultCount == board.GetSize())
                    {
                        result = EnumForResult.Result.WIN;
                        break;
                    }
                }
            }
            return(result);
        }
Example #2
0
 public EnumForResult.Result CheckDiagonal()
 {
     EnumForResult.Result result = EnumForResult.Result.INPROGRESS;
     return(result);
 }
Example #3
0
 public EnumForResult.Result CheckColumn()
 {
     EnumForResult.Result result = EnumForResult.Result.INPROGRESS;
     return(result);
 }