Example #1
0
        public SodukoSubBoard(SodukoBoard3d board, int dimension, int index, int subIndex1, int subIndex2)
        {
            subIndex1.VerifySmallIndex();
            subIndex2.VerifySmallIndex();
            dimension.VerifySmallIndex();
            index.VerifyIndex();

            m_Board     = board;
            m_Dimension = dimension;
            m_Index     = index;
            m_SubIndex1 = subIndex1;
            m_SubIndex2 = subIndex2;
        }
Example #2
0
        public SodukoBoard1d(SodukoBoard3d board, int dimension, int index1, int index2)
        {
            if (dimension != 0 && dimension != 1 && dimension != 2)
            {
                throw new ArgumentOutOfRangeException();
            }
            index1.VerifyIndex();
            index2.VerifyIndex();

            m_Board     = board;
            m_Dimension = dimension;
            m_Index1    = index1;
            m_Index2    = index2;
        }
Example #3
0
        public MainGame()
        {
            board = new SodukoBoard3d();

            for (int dimension = 0; dimension < 3; dimension++)
            {
                for (int index = 0; index < 9; index++)
                {
                    SodukoParts.Add(new Tuple <int, int>(dimension, index), new SodukoBoard2d(board, dimension, index));
                }
            }
            Add1dVerifyers();
            AddSubSquares();
        }
Example #4
0
 public SodukoBoard2d(SodukoBoard3d mainBoard, int dimension, int index)
 {
     m_Board     = mainBoard;
     m_Dimension = dimension;
     m_Index     = index;
 }