Skip to content

This is a scratch and win game which i have developed with flutter. The logic for the app is in the readme file.

Notifications You must be signed in to change notification settings

harshkumarkhatri/Scratch-and-Win-Game-Flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scratch_and_win_game_flutter

A simple scratch and win game where you have a grid of 25 blocks out of which only one block has the prize and you win when you find the correct one. About the app
This Flutter app allows the user to select any 5 block from the total 25 present out of which only one has the prize. If you figure out which block it is on or before 5th try then you win, else you lose and the game will reset itself. It's a game of Luck. Good Luck!
I was inspired to make this game after seeing one of my friend make this.
The initial screen has two buttons taking you to the game or rules respectively.
Things which are donw in this app invove:-

  • Stateful and stateless widget
  • layout building
  • Various images display
  • Audioplayer and audio cache
  • Raised buttons
  • List Grid view etc.
  • Navigator

Logic:- When the game will load a random number will be generated automatically on which the cash image will be displayed which will make you win.
The 25 boxes which are also displayed are buttons which will be triggered when we press them and are stored in the list. These buttons have a index number which is matched with the random to decide whether we win or loose.
Another variable count is there which keeps the track of count/ your chances.
We have a reset button which will be resetting the game if you want to start from the beginning.
Different text are also displayed in the Text view according to the state of the game.
Audios are also played accordingly.
Show all button is responsible for showing all the images on the blocks.


Built using:-

  • Flutter

Some snaps from the app:-
Full video:- https://youtu.be/pYy_gR2oxlc
Initial screen rules Empty boxes first click Show all triggered Game lost Game won

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

This is a scratch and win game which i have developed with flutter. The logic for the app is in the readme file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published