Skip to content

bundeeteddee/PvzQuiz

Repository files navigation

PvZQuiz

A simple quiz game built with some specific requirements. Why is it called PvZQuiz? It's because i started playing Plant vs Zombie again while building this app.

  • A single player quiz game
  • A start screen that a user can start a new game
  • 10 unique questions, each quiz question has 5 choices
  • You have 10 seconds to answer each question
  • Once quiz is completed, show a result page. Allow user to start a new game

What is it made of?

  • Android Data Binding Library Binding of xml elements
  • MVVM Framework A framework that i'm using for the first time actually, which works quite well with data binding library.
  • Greenbot's EventBus to untangle message passing
  • The usual material support library from Google
  • The actual quiz questions are included in the project in the form a .json file under /res/raw/quiz.json

How to run on your Android phone?

  1. First, Clone this repo

  2. In Terminal, go into the main folder cd /path/to/folder/PvZQuiz/

  3. Then build the a debug application and wait till completion ./gradlew assembleDebug

  4. Ensure that you have the platform tools, especially the adb tool by downloading just the command line version from Google's site or direct link to mac version here.

  5. Go to the platform tools folder cd /path/to/android-sdk-macosx/platform-tools/

  6. Ensure your Android phone is in debug mode. For example, see here.

  7. Deploy debug build to your Android phone by ./adb -d install /path/to/PvZQuiz/app/build/outputs/apk/app-debug.apk

Done

Screenshots

Intro Quiz Correct Answer Incorrect Answer Results

About

A simple quiz android application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages