// CS1101 (AY2007/8 Semester 1)
// Lab 7 Exercise 1
// Sudoku.java
// Written by: Aaron Tan
//
// Fill in the description of this program here.

public class Sudoku {

   // Data member
   private int[][] board;

   // Constructor to create an empty Sudoku board
   public Sudoku() {
      board = new int[9][9];

      for (int r=0; r<9; r++) 
         for (int c=0; c<9; c++) 
            board[r][c] = 0;
   }

   // Constructor to create a Sudoku board
   // with values provided in the array inBoard
   public Sudoku(int[][] inBoard) {

      // fill in your code here

   }

//-----------------------------------------------------------
//      Public Methods:
//          int setBoard ( int[][] );
//          int getValue ( int, int );
//          void setValue ( int, int, int );
//          String toString ();
//----------------------------------------------------------
   
   // Sets the Sudoku board by copying the values in 
   // the array inBoard
   public void setBoard(int[][] inBoard) {
      for (int r=0; r<9; r++) 
         for (int c=0; c<9; c++) 
            board[r][c] = inBoard[r][c];
   }

   // Gets the (row,col)-value in the Sudoku board
   public int getValue(int row, int col) {
      return board[row][col];
   }

   // Sets the (row,col)-value in the Sudoku board
   public void setValue(int row, int col, int value) {
      board[row][col] = value;
   }

   // Returns string representation of a Sudoku puzzle
   // A blank cell is represented by '-'.
   public String toString() {

      // fill in your code here

   }

   // Solving a Sudoku puzzle using a very simple
   // algorithm (which may not solve the puzzle completely).
   public void solve() {

      // fill in your code here

   }
}

