/MyAppSample

Sample App for Android

Primary LanguageKotlin

Ultimate Rock-Paper Scissor Sample

Overview

This is an Android game sample of a PvE (Player vs Environment) version of the traditional Rock-Paper-Scissor game.

The rules are the same as the traditional Rock-Paper-Scissor game.

  • Rock beats scissor
  • Paper beats rock
  • Scissor beats paper

Features

This sample showcases the following features of the Android Components:

  • Navigating via actions
  • Transitions
  • Popping destinations from the back stack
  • Fragments communications via companion object
  • Logging for debugging
  • Differentiate behavior on different lifecycle states
  • Toast!

There are 2 available difficulties in this sample:

  • Normal. The enemy will choose random hand.
  • Impossible. The enemy will always choose the winning hand against yours.

Screenshots

Here is the prototyping stage.

Prototype

And here is the development & debugging stage.

Screenshot

Others

This sample is a modification of Navigation Basic Sample from Android Architecture Components Samples

This sample is created as part of Mobile Application Development project, Information Technology, Universitas Gadjah Mada, 2022.

For a more detailed commit history, please refer to the contributor's personal repository here.

Any issues found can be reported here.

Aditya Dwi Cahyo Putra (19/444035/TK/49231)

PAPB_2022_04