Interactive Sudoku game and step-by-step solver to demonstrate principles of OOP (inheritance, polymorphism, testing, etc)
Contents Start Instructions Gameplay Testing
- Install SDL2 framework
- Get a font (.ttf file)
- Run with
./run.sh
and you will find a few options - Fun options include
./run.sh -type cp
./run.sh -type vp
./run.sh -type vcp -walkthrough y
./run.sh -type vcp -file puzzles/input3.txt -autosave y
(pretty pictures)./run.sh -type vcp -autosave y
(pretty pictures with test players)
- After you compile once, feel free to comment it out in
run.sh
- Use
Player
class to play text-basedcreate
your own board- Load a text file
- Use
VisualPlayer
class to play visual version - this includes helping numbers!!!- Press 'space' to add helping number
- Press 'a' to add all available helping numbers (very helpful for technique)
- Double-click a helping number to remove it
- Press 'c' to clear all helping numbers
- Use
CompPlayer
class to solve a puzzle text-based (techniques are currently incomplete)- Use
walkThrough
option to click through step-by-step solution autoSave
option provides nice text file summary
- Use
VisualCompPlayer
class to solve a puzzle visually- Use
walkThrough
option to click through step-by-step solution autoSave
option provides nice image summary
- Use
Helping Numbers
- Get Catch2 header file
./run.sh test