Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update Die.java
  • Loading branch information
jjv14001 committed Mar 24, 2017
1 parent cd90dde commit bfddbf5
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/model/Die.java
Expand Up @@ -6,20 +6,21 @@ public class Die {
* Die will probably have to go in each individual turn, so that it can pull charity status
* from the player currently playing
*/
public int rollOneDice()
{
public int rollDice(Boolean c) {
Random rand = new Random();
int face = 1+rand.nextInt(6);
return face;
//if statement for downsize first
//if statement for charity next
//then do the rest
if (c) {
int face = 1+rand.nextInt(12);
return face;
/* There needs to be something that takes charity - 1 from the player after rolling
* Or maybe just a simple "if charity > 0 then charity - 1 after every turn
*/
}
else {
int face = 1+rand.nextInt(6);
return face;
}
}

public int rollTwoDice()
{
Random rand = new Random();
int face = 1+rand.nextInt(12);
return face;
}



}

0 comments on commit bfddbf5

Please sign in to comment.