The project like this one was intentionally left incomplete, similar to the Jigsaw puzzle. It's a problem that people can figure out to learn JavaScript.
…or bring the community closer together when someone else solves the problem, like here…
Try solving the problem. That's a great way to learn. Here are some clues to get you started…
- Think of the logic — How would you define a game over?
- Hype has an API — Looks like you have a little head start, as you mentioned the…
hypeDocument.continueTimelineNamed('timelineName', hypeDocument.kDirectionForward, false)
API. You know what you want to run. - Understand the events — Which JavaScript event causes a card to flip?
- Building — Is there an event that could be used to “Check” the state of the game?
- Does the Check happen instantly — Do you need a delay before checking? If so, how is that done with JavaScript efficiently?
If you get stuck, then post here where you're having trouble.