]> git.cworth.org Git - turbot/commit
Use a set instead of a list for a puzzle's solution
authorCarl Worth <cworth@cworth.org>
Sat, 8 Jan 2022 02:31:33 +0000 (18:31 -0800)
committerCarl Worth <cworth@cworth.org>
Sat, 8 Jan 2022 02:31:33 +0000 (18:31 -0800)
commit465eb019a7e380590df492762b9c904ece977069
tree165d67f5e0a6506e1ef5a49b30cda1d9ffd8a6bf
parent42dde0b52a225b0cad1366b106a5fd14f679861b
Use a set instead of a list for a puzzle's solution

This allows for cleaner handling when two solvers submit the same
solution back-to-back. Previously the identical solution would appear
multiple times in the list of solutions which was obviously not
helpful.

Now, each solution will appear no more than once.
turbot/interaction.py