java-android-calculit's People
java-android-calculit's Issues
Share players infos when another player search game
Should receive and print :
- The name of the player
Make progressbar increase smoothly
Make it increase by 100/(N*timeToPrint) every millisecond
Continue same play when closing/restarting the app
Authentification with Firebase
Database with Firebase concept
Find what we should store in Firebase and in which format
Write the "script" that will be on Firebase
Print infos on the game in progress
On the Main activity, next to the continue button, print the level in progress, difficulty and everything.
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
Timeout when user is not responding
On the answer activity, insert a timeout of after which the user loose if he didn't answer, will be useful on the 1v1
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
Change 'back home' buttons to Toolbar
On every screen we have a back button, would be prettier to have the toolbar at the top with the arrow to go back to main or somewhere else
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 local scores per difficulty
Avoir losing the score in a difficulty when changing the difficulty.
Store the play in progress in the local save
Add a + when number is postitiv
On the Game activity, negative numbers have a -, would be nice to have a + for positive
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
Implement fetch functions from Firebase for highscore
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.