The problem is that the typing system doesnt know if a key gives back a value in my map (which I use to store my state):
Copy code
@Test
fun `Roll returns how many pins are left when rolling 0 twice`() {
val state = roll(0)
assertEquals(0, roll(state["pinsLeft"], state["triesLeft"])
}