| author | Christian Urban <christian.urban@kcl.ac.uk> | 
| Sun, 15 Sep 2024 12:57:59 +0100 | |
| changeset 490 | f70d74fea67f | 
| parent 472 | fbff6f601370 | 
| permissions | -rw-r--r-- | 
| 432 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 1 | |
| 472 | 2 | def urbanmain() = {
 | 
| 3 | import M2._ | |
| 432 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 4 | |
| 472 | 5 |   assert(score("chess", "caves") == List(Correct, Absent, Absent, Present, Correct))
 | 
| 6 |   assert(score("doses", "slide") == List(Present, Absent, Absent, Present, Present))
 | |
| 7 |   assert(score("chess", "swiss") == List(Absent, Absent, Absent, Correct, Correct))
 | |
| 8 |   assert(score("chess", "eexss") == List(Present, Absent, Absent, Correct, Correct))
 | |
| 432 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 9 | |
| 472 | 10 |   val urban_p = pool("chess", "caves")
 | 
| 432 
87e487ccbd7c
updated wordle testing
 Christian Urban <christian.urban@kcl.ac.uk> parents: diff
changeset | 11 | |
| 472 | 12 |   assert(aux("chess".toList, "caves".toList, Nil) == List(Correct, Absent, Absent, Absent, Correct))
 | 
| 13 |   assert(aux("chess".toList, "caves".toList, urban_p) == List(Correct, Absent, Absent, Present, Correct))
 | |
| 14 | } |