Reset the game after game is won

I created the Dueling Dice game from @pgliljedahl. I have it so the game stops when a player has 7 points. I’m not sure how to “reset” the game so they can try again. Any help would be great! thanks


I made a couple additions to your last slide. I added some code to the graph and action component, as well as a few things in the actual graph. I annotated the code that was added to help explain my thinking. The only think I modified of yours was the S_1 and S_2 variables in the graph because they were not displaying 0 at the start of the game. Hopefully this is what you were looking for.

1 Like

OMG thanks. That’s exactly what I was looking for. Your code helps me learn even more.

Jules Bonin-Ducharme