A fun and challenging number-based game for Android where players test their speed and memory by clicking numbers from 1 to 50 in ascending order as quickly as possible.
| Screenshot 1 | Screenshot 2 | Screenshot 3 | Screenshot 4 | Screenshot 5 |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
| Instructions dialog | Main game screen | Game in progress | More buttons clicked | Game completion |
- 🎯 5x5 Grid Gameplay: Click numbers 1-50 in ascending order
- ⏱️ Real-time Timer: Track your completion speed
- 🏆 Performance Evaluation: Get feedback based on your time
- 🔄 Reset Functionality: Start over anytime
- 🌍 Persian Interface: Localized user experience
- 📊 Smart Scoring: Different performance levels based on completion time
- Start the Game: Launch the app and read the instructions
- Find Number 1: Look for the button displaying "1" in the 5x5 grid
- Click in Order: Click numbers 1, 2, 3, 4... up to 50
- Beat the Clock: Complete as fast as possible
- Get Your Score: See how you performed!
| Time | Rating | Persian Text |
|---|---|---|
| ≤30 seconds | 🧠 Very Smart | خیلی باهوشی |
| 31-60 seconds | 🎯 Smart | باهوشی |
| 61-90 seconds | 😊 Average | معمولی |
| >90 seconds | 😴 Tired | خسته ای :))) |
- Android Studio: Hedgehog (2023.1.1) or later
- Minimum Android: API 21 (Android 5.0 Lollipop)
- Target Android: API 34 (Android 14)
- Gradle: 8.13
- Android Gradle Plugin: 8.12.0
- Android Studio installed
- Android SDK 34 installed
- An Android device or emulator
-
Clone the repository
git clone https://github.com/shoghli1999/simple-game-java.git cd simple-game-java -
Open in Android Studio
- Launch Android Studio
- Select "Open an existing Android Studio project"
- Navigate to the cloned folder and select it
-
Wait for Sync
- Let Gradle sync complete (may take a few minutes on first run)
- Resolve any dependency issues if prompted
-
Run the App
- Connect an Android device or start an emulator
- Click the green
▶️ Run button or pressShift + F10
simple-game-java/
├── app/
│ ├── src/main/
│ │ ├── java/lalopathy/shirinshoghli/
│ │ │ └── MainActivity.java # Main game logic
│ │ ├── res/
│ │ │ ├── layout/
│ │ │ │ └── activity_main.xml # UI layout
│ │ │ ├── values/
│ │ │ │ ├── colors.xml # Color definitions
│ │ │ │ └── strings.xml # String resources
│ │ │ └── drawable/
│ │ │ └── app.png # App icon
│ │ └── AndroidManifest.xml # App configuration
│ └── build.gradle # App-level build config
├── build.gradle # Project-level build config
├── gradle.properties # Gradle settings
└── README.md # This file
-
MainActivity.java: Contains all game logic including:
- Button click handling
- Timer management
- Score calculation
- UI updates
-
activity_main.xml: Defines the 5x5 grid layout with:
- 25 buttons arranged in a grid
- Chronometer for timing
- Reset button
This project has been modernized for current Android development:
- ✅ Gradle 8.13 - Latest stable version
- ✅ Android Gradle Plugin 8.12.0 - Latest stable version
- ✅ AndroidX Migration - Modern Android libraries
- ✅ API 34 Support - Latest Android features
- ✅ Performance Optimizations - Parallel builds, caching
- ✅ Code Quality - Fixed deprecated methods
Gradle Sync Fails
# Clean and rebuild
Build → Clean Project
Build → Rebuild ProjectBuild Errors
# Invalidate caches
File → Invalidate Caches and RestartDevice Not Detected
- Enable Developer Options on your device
- Enable USB Debugging
- Install proper USB drivers
- Check that Android Studio is up to date
- Verify Android SDK 34 is installed
- Try syncing project with Gradle files
- Check the Android Studio documentation
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Shirin Shoghli
- GitHub: @shoghli1999
- Android Studio team for the excellent development environment
- Google for AndroidX libraries
- The Android developer community
⭐ Star this repository if you found it helpful!
📧 Questions? Open an issue or contact the author.




