Skip to content

leonardolang/cpp-sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

cpp-sudoku

This is a compile-time implementation of Sudoku where only correct Sudoku solutions are well-typed, relying only on features from C++ 98.

A Sudoku table can be declared using a series of nine row declarations as template parameters. See the end of the file for a few examples.

For fully evaluating the types (and therefore performing the validation), either type t from the table have to be typedef'ed or an object has to be instantiated.

Why?

It was inspired by this post on r/ProgrammerHumor, titled "Sudoku validity is a Total function":

Sudoku at compile time

About

Compile-time C++98 Sudoku implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published