



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Project Tutorial Project: Sudoku Helper Team Members: Jorge Alexis Hernandez Tasha Hollingsed Nidia Pedregon Anais Rivera Sudoku Description Sudoku is a puzzle consisting of a 9x9 grid subdivided into nine smaller 3x3 grids. A number of integers (1-9) are scattered throughout the grid (these are called hints). Players must fill out the remainder of the grid with the integers by using a set of rules. Two of the same number cannot be in the same row, column, or subgrid. A square is referred to by its coordinates (row, column). For instance, square (1,2) contains 5. Project Description Our project goal is to develop and implement the Sudoku puzzle and a help system for the puzzle. The system will ask the user to report their experience level and from this the system will determine what level of puzzle to give the user to play and be able to determine what type of help to give the user to start with. The help system will be initiated when the user asks for help. While the user is playing, the system will take in information to determine how well the user is doing. This information will be processed to re-evaluate the user’s difficulty level. Different types of help will be given to the user depending of the level of the user, for instance if the user is new to the puzzle, then detailed help messages will given saying what number to put and where and why that is the best move. If the user is an expert, then more expert tooltips will be given to the user.
The system itself will consist of a puzzle and solution database and three main components: the Sudoku game interface, the Helper, and the Solver. Sudoku game : This part of the system comprises the stand-alone game and database which contains the puzzles and solutions. It contains the user interface, containing the current state of the puzzle, and contains which level the user reported being. It sends the Solver the current state of the puzzle and sends the Helper a message when the user asks for help and the difficulty level of the user. Helper : This part of the system comprises the possible hints that can be given to the user depending on the user’s level. It will determine the type of hint to give to the user and it will also determine if the user reported the correct level or not. It will communicate with the Solver to determine which hints should be given to the user based on the current puzzle state. Solver : This part of the system comprises the logic system and the decision system. This part of the system will know the rules of the game and will be able to know the possible next steps from the current state of the puzzle. The Solver will be able to compare the current state of the puzzle to the real solution to determine where the user made a mistake. The Solver will determine the best next step given the current state and the level of the user. Artificial Intelligence Techniques Three AI techniques will be used within our system. Multicriteria decision making will be used in the Solver to determine the best next move. Weighted user help o determine what help to give the user and user expertise diagnosis to evaluate the expertise level of the user will be used in the Helper. Multicriteria decision making : This technique will help to determine the next best move given the current state of the puzzle. Multi-criteria decision making is necessary to achieve the best decision based on the previous answers and a matrix of all possible solutions based on those squares that were already filled. With analyzing the probability Sudoku game Helper Solver Puzzle and Solution database
Time to complete the last puzzle Number of wrong previous puzzle solutions Number of abandoned puzzles Weighted User Help : This will determine what type of help to give the user depending on the user’s expertise level. User help is weighted on the calculated expertise level of the user. Every time the user asks for help, a help message will appear depending on the user’s expertise. The following type of help messages will appear for three types of user expertise levels: New Player : A new player is the most inexperienced and therefore will receive the most detailed help messages. When this level of user asks for help, the system will display what number should go where and explain to the user why that is the best choice. For instance in the case below: The help system will highlight the intended column and row in green and the rows and columns that it cannot go into in red. And t will display the following help message: A 2 would be best to place in square(3,8), because there is already a 2 in rows 1 and 2 and a 2 in column 8. When looking for possible moves, it is best to look at the bigger picture at first. Look to see if there two boxes in a column or row that have the same number and you will find the possible places to put that number in the third box has dramatically decreased. Experienced Player : An experienced player has played Sudoku before and has successfully completed several puzzles. The help messages an experienced played will receive will be similar to the messages anew play will get, but the answer and exact square will not be given. Instead, an experienced player will receive more
general help. For instance in the same situation as above, an experienced player will receive the following help: The Help system will highlight the subgrid that the user should concentrate on in green and it will display the following message: When looking for possible moves, it is best to look at the bigger picture at first. Look to see if there two boxes in a column or row that have the same number and you will find the possible places to put that number in the third box has dramatically decreased. Expert Player : An expert player is a player that has played many puzzles and knows most tricks and hints to solve the puzzle as quickly as possible. With this type of player, the help that is given consists of no more than a tip on how to play the puzzle.