You might have a formatting bug! (In the Snake Eyes outcome) It produces "Error: cannot find a closing tag for HTML <span>"
Other than that, this is charming! Have you used any other game tools? I feel like the central mechanic of this game would present really well visually, and I couldn't actually come up with an optimal strategy off the cuff which suggests to me the game itself is basically interesting.