knadh / dns.toys

A DNS server that offers useful utilities and services over the DNS protocol. Weather, world time, unit conversion etc.
https://www.dns.toys
MIT License
2.49k stars 136 forks source link

Add a sudoku solver service #74

Closed legosandorigami closed 6 months ago

legosandorigami commented 8 months ago

This feature introduces Sudoku-solving capability. A Sudoku puzzle string is represented by cell values in a row-major format, each row separated by a dot, where empty cells are denoted by the value 0. For instance, sudoku The corresponding puzzle string would be: : 080000005.000835410.903407820.700000600.100509002.006000003.018302907.047698000.300000040

Running this through the feature yields the output: 481926375672835419953417826725183694134569782896274153518342967247698531369751248

@knadh, I would like to know if you find this addition useful and worthy of inclusion. I apologize for the multiple PRs; the first one contained errors as I wasn't aware of the RFC 1035 specification.

knadh commented 8 months ago

This is quite cool! I'll test this out in a couple of days and merge. Do you have any pending changes for this branch?

legosandorigami commented 8 months ago

@knadh Glad to hear. Currently, there are no pending changes for this branch.

knadh commented 6 months ago

Hi @legosandorigami. This is merged to master. Made a few changes.

legosandorigami commented 6 months ago

Hi @knadh Thank you