First pass at a sudoku solver: Puzzle Import

Imports a puzzle from a string and displays the restricted puzzle.
This commit is contained in:
Drew Galbraith 2023-04-17 16:31:47 -07:00
commit bcc5b5097e
8 changed files with 179 additions and 0 deletions

20
solver/puzzle.h Normal file
View file

@ -0,0 +1,20 @@
#pragma once
#include <optional>
#include <string>
#include "cell.h"
class Puzzle {
public:
static Puzzle FromString(std::string puzzle);
std::string CurrentState();
std::string PencilMarkState();
void AssignSquare(uint8_t id, uint8_t value);
private:
Puzzle();
std::array<Cell, 81> cells_;
};