GithubHelp home page GithubHelp logo

java-android-calculit's People

Contributors

alexvcht avatar erwanlbp avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

java-android-calculit's Issues

Allow user not authentified

For now, only user authentified can use the app.

  • Allow user to use the app unauthentified, so he can play but not save his scores

Refactoring

  • Change the Message constants to be simpler, e.g : GameConfig.CONFIG_NUMBERS => GameConfig.NUMBERS or GameConfig.MESSAGE_NUMBERS

  • Change the id names to be more meaningfuls

  • Move every @+id/... into the id resource file

Save best score when finishing a play

When user have lost/quitted a play (e.g. call 'finishedPlay'), call 'saveHighScore' in Firebase.
It will check the highscore of the player in this difficulty and save the new one if better

Create a pop-up builder

In a class PopUpBuilder or something,
popup = new PopUpBuilder()
then popup.addMessage().addOption().addAction ... etc
find great ideas

A Fragment to show the gameConfig

Create a Fragment that will display all the parameters of the config, like the level, size, difficulty, etc...
So that we can put it for example at the top of the PrintResultActivity or the MainActivity

Improve app icon

Change the icon of the app with a new beautiful/meaningful icon
Only two lines to change in the manifest

Custom difficulty

For now we have 4 difficulties and on the screen to select one there are just four buttons.
Add a button/form to make your own difficulty and set your parameters like the numbers size, timeToPrint, etc

Store locally the play in progress

When ?

  • When user leaves the app with an unfinished play
  • When user goes back to MainActivity with an unfinished play

What ?

  • In a class that manage local data storage/fetch
  • Store locally the currentLevel

Implies

  • When user finishes a play (e.g call 'finishedPlaying'), delete his temporary local datas

Store player looking fo 1v1 in Firebase

  • Create a table in Firebase containing players looking for a 1v1
  • Create function to store the user in the table when looking for a 1v1
  • Create function to delete user from the table when 'aborting' or 'foundSomeone'
  • Create activity waiting for player with the abort button

Activity How to use

Add a boolean stored in DB 'firstGame'
Add an activity (between main activity and game activity when it's the first game of the user) on how to play the game

Add animation when changing number

Right now when the numbers to print contain like [ 1 2 2 3 ] we don't see that there is duplicates.
Add an animation to mark that the number has changed.
Examples:

  • Some sort of flash
  • A bar like [O][O][X][X][X] to see at which index we are

Offline notice on top of activity

Add a checking in the onstart of the baseactivity, then add a bar on top of the screen to tell the user that he is offline and that some of the online functionnality may not work

Send user answer to the server and wait for opponent answer

When game is finished :

  • User answer
  • Answer is sent to Firebase in the gameID path
  • User see that the opponent didn't answer yet
  • When both answered show who was right
  • When clicked next level, on Game Activity, wait for opponent to be ready

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.