Skip to content

Simple Game Idea with three challenge levels#13

Merged
nikhilbansal97 merged 7 commits intonikhilbansal97:masterfrom
subbramanil:feature/simple_game_idea
Oct 19, 2019
Merged

Simple Game Idea with three challenge levels#13
nikhilbansal97 merged 7 commits intonikhilbansal97:masterfrom
subbramanil:feature/simple_game_idea

Conversation

@subbramanil
Copy link
Copy Markdown
Contributor

@subbramanil subbramanil commented Oct 16, 2019

feat: Simple Game Idea with three challenge levels

- Adds new launcher activity with challenge levels
- Replaces the hard-coded number of tiles & tries with flexible number based on challenge

The idea is to present the user with three challenge levels

1. Easy
2. Medium
3. Hard

Based on the user choice, set the number of tiles & max. number of tries. The user can play as many times as he wants in the current challenge level. To choose a much challenging level, he has to go back to the start of the app and change and continue playing. We can track how quickly user clears a challenge and award points/stars.

For now,

Easy -> 4 tiles, 4 tries
Medium -> 6 tiles, 6 tries
Hard -> 8 tiles, 8 tries

The number of tiles & tries are chosen as the same for simplicity but can be improved.

Screenshots:

Start

memorygame-GameActivity-challenges

Easy

memorygame-GameActivity-easy

Medium

memorygame-GameActivity-medium

Hard

memorygame-GameActivity-hard

- Upgrades gradle & gradle wrapper
- Updates the compile & target SDK to fix warnings
- Moves from 'appcompat' to 'androidx' library usage
- Moves hard coded strings to 'Strings.xml'
- Removes unused resources
- Fixes Lint warnings

This commit migrates the code base to the latest android development tools before adding new features.

The migration is done as follows,

- Analyze the project using lint and apply auto-suggesions wherever possible
- When auto-suggestion isn't available, apply sensible changes manually
- Adds new launcher activity with challenge levels
- Replaces the hard-coded number of tiles & tries with flexible number based on challenge

The idea is to present the user with three challenge levels

1. Easy
2. Medium
3. Hard

Based on the user choice, set the number of tiles & max. number of tries. The user can play as many times as he wants in the current challenge level. To choose a much challenging level, he has to go back to the start of the app and change and continue playing. We can track how quickly user clears a challenge and award points/stars.

For now,

Easy -> 4 tiles, 4 tries
Medium -> 6 tiles, 6 tries
Hard -> 8 tiles, 8 tries

The number of tiles & tries are chosen as the same for simplicity but can be improved.
@nikhilbansal97 nikhilbansal97 merged commit f2e4247 into nikhilbansal97:master Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants