This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CMSC 106 Project #4 Fall 2011 Due date: Friday, November 18, 2011 1 Purpose In this project you will write a program using arrays and character input. You are a big fan of the game Sudoku but you are not always sure you are solving the puzzle correctly so your job is to write a sudoku checker. The two stages of checking are (1) checking a complete board to see if it is a valid solution and (2) checking a partially filled board to see if it is good so far. In a sudoku puzzle solution, you have a 9x9 grid where every row must contain exactly one of each of the numbers 1-9, every column must contain exactly one of each of the numbers 1-9, and every 3x3 subsquare must contain exactly one of each of the numbers 1-9. If the sudoku puzzle is not yet completed, one or more of these could be replaced by spaces. There are 9, 3x3 subsquares that make up the 9x9 square. 2 Project description As you read this section, you may also want to look at the input and their corresponding output as a sample the different test files provided will create. Your final product must run correctly with the sudokuMain.c and sudokuHelpers.c (both enclosed) when compiled with your sudoku.c when all parts are. The files whose names start with the word test are only there to allow you to test parts of your program as you go along. The output of your program must match the outfiles exactly. The input to your program is to consist of a sequence of input lines with no prompt requesting them. These input lines correspond to the lines of the sudoku board. Except, as described in the input function comments, the input is characters (so can contain spaces and end of lines) while the values to be stored are integers. These shouldinput is characters (so can contain spaces and end of lines) while the values to be stored are integers....
View Full Document
This note was uploaded on 01/12/2012 for the course CMSC 106 taught by Professor Staff during the Fall '07 term at Maryland.
- Fall '07