https://github.com/adamslevy/sudoku_bool
A sudoku board representation, solver, and interface for playing sudoku boards on the command line.
https://github.com/adamslevy/sudoku_bool
Last synced: 8 months ago
JSON representation
A sudoku board representation, solver, and interface for playing sudoku boards on the command line.
- Host: GitHub
- URL: https://github.com/adamslevy/sudoku_bool
- Owner: AdamSLevy
- Created: 2016-01-10T03:31:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-14T06:36:52.000Z (almost 9 years ago)
- Last Synced: 2025-10-11T11:57:55.573Z (8 months ago)
- Language: C++
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Sudoku
A Sudoku board class with built in solver functions.
The main has a command line interface for playing and solving sudoku boards.
Includes 5 hard coded boards and allows entering custom boards.
The Undo class is used by the interface to allow undo when playing a board.
##About
I wrote this code as my final project for the CS201 Intro to C++ class at University of Alaska, Fairbanks in Spring 2014.
With the exception of the makefile, the code I submitted for that class is the first commit in this repo.
I have since made some minor changes for publishing it here.
I have added comments and changed some function names for clarity and cleaned up some logic.
I may continue to add some comments to the Sudoku class and update this README.md with more information about how my solver functions work but I don't expect to make many more changes to this code.
The main program no doubt has some bugs in the interface but I don't intent to fix those.
##Use
Feel free to use, modify, play with, or learn from this code.
Please just clearly give credit with a link to this repo in your code if you use any of mine.
Though you don't have to, I would be happy to hear that looked at my code.
I will be adding contact information here shortly.
##Build and run
Navigate into the folder containing the repo
`$ cd /path/to/sudoku_bool`
Run make
`$ make`
Run *play_sudoku*
`$ ./play_sudoku`
##Bugs
It is no doubt easy to break my main program.
I won't be making any changes to main.cpp, Undo.cpp, or Undo.h.
However, if you find a bug in the Sudoku class, I would be interested in fixing that.
*Updated Jan 10, 2016*