If the shooter (in the game of craps1) doesn’t immediately win or lose, then she must keep rolling the dice until she scores the point value and wins, or scores a 7 and loses. Write code that checks whether the game status is NA and if so, repeatedly generates a craps score until either the point value is scores (set game_status to TRUE) or a 7 is scored (set game_status to FALSE).

You will need to recuperate your solution from the previous exercise.

(from: Cotton, 2013, Learning R, O’Reilly)