Zombie Apocalypse

So, I found this Zombie apocalypse desmos activity for coordinate planes, but I thought it would be fun to code the game to where I could formally assess different math concepts. However, I cannot seem to figure out how to code the table to which the points will still go to the same place.
For instance, in the game, it has a table and the concept is finding the distance between two points to avoid the zombies. Rather than measuring the distance, I want students to answer a question first. If they get the question right, then, the line still moves and the third points comes up so they have to solve another and so on until they have avoided all the zombies. Right now, the graph code looks like this: number(“A_B”): tblZombies1.cellNumericValue(1,2)

I want the code to “say” ’ if cell(1,2) = ______, then…’

You can add the if-then structure to

number("A_B"): tblZombies1.cellNumericValue(1,2)

like this:

number("A_B"): when tblZombies1.cellNumericValue(1,2)= 00 11 otherwise 22 

where

  • 00 is replaced with your correctly entered value,
  • 11 is replaced with your value for A_B if the input was correct, (if is true) and
  • 22 is replaced with your value for A_B if the input is incorrect. (if is false)

That worked! Thank you so much!