| author | Christian Urban <christian.urban@kcl.ac.uk> | 
| Wed, 06 Mar 2024 18:20:25 +0000 | |
| changeset 481 | cae100aab278 | 
| 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 | } |