Skip to content

Here I've coded a two player dice game on android. This is one of my very first android application. It's a two player dice game. Check out README for game instructions.

Notifications You must be signed in to change notification settings

maitrabp/TwoDicePig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

<------------------------------------GAME INSTRUCTIONS----------------------------------------------->
There are two dice and two players competing against one another on one device:
• If the player rolls a single 1, they score nothing, and it becomes the next player’s turn
• If the player rolls both 1s, their total score is lost, and their turn ends
• If the player rolls any other number, it is added to their turn total, and the player’s turn continues
• If a player chooses to hold, their turn total is added to their score, and it becomes the next
player’s turn
• If a double (both same face value, but not 1s) is rolled, the point total is added to their turn total
like normal, BUT the player is obligated to roll again
    o This means that they cannot choose to HOLD for the next roll, i.e., the HOLD option
      is disabled

GAME END STATE: The first player to 50 wins.

Built With
    -> Android Studio
        Java for Backend 
        XML for Layouts

[Android Studio]: https://developer.android.com/studio
[Java]: https://www.oracle.com/java/technologies/javase-downloads.html

About

Here I've coded a two player dice game on android. This is one of my very first android application. It's a two player dice game. Check out README for game instructions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages