argumentcomputer / lurk

Lurk is a Turing-complete programming language for zk-SNARKs. It is a statically scoped dialect of Lisp, influenced by Scheme and Common Lisp.
https://docs.argument.xyz
MIT License
46 stars 3 forks source link

Add mini-mastermind demo. #341

Closed porcuquine closed 1 month ago

porcuquine commented 1 month ago

This PR adds a minimalistic adaptation of the mastermind demo, for simpler comparison with Veridise's zk Language Comparison.

It adds a score-one-turn function, since the examples in the comparison above only score a single turn.

The only substantive difference is that code-valid? considers 0 a valid code, so we can use the same test cases as the Circom baseline implementation.