Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
afortuna2016 committed Feb 28, 2017
2 parents 42f385b + 4189b67 commit 0a14529
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Main/Profession
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

23 changes: 23 additions & 0 deletions src/Main/die.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import java.util.Random;


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 rollDice(Boolean c) {
Random rand = new Random();
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;
}
}
}
23 changes: 23 additions & 0 deletions src/die.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import java.util.Random;


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 rollDice(Boolean c) {
Random rand = new Random();
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;
}
}
}

0 comments on commit 0a14529

Please sign in to comment.