sudoku-solver-cpp/solver/puzzle.h
Drew Galbraith bcc5b5097e First pass at a sudoku solver: Puzzle Import
Imports a puzzle from a string and displays the restricted puzzle.
2023-04-17 16:31:47 -07:00

20 lines
314 B
C++

#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_;
};