The final screen for this project contains the Knockout game. In this screen, the player will play against the device. Instead of having a single dice, there will be two dice that will use the same animations that you've already used in the single screen class.
When the user plays, the sum of the two dice will be added to their score, unless the sum of the dice is 7. In this case, nothing will be added to the score. When the player or the AI reaches at least 50 points, the player with the highest score wins. So, let's begin, as follows:
- Start by adding a new screen to the app: we'll call it knockout.dart.
- At the top of the file, add the required imports: we'll need the flare_actor.dart library for the animations, ...