Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No changes #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

payneda
Copy link
Member

@payneda payneda commented Oct 25, 2015

No changes were made to this file yet.

No changes were made to this file yet.
Here are the new changes.
Final version of Assignment 7.
public void dropDice() {
for (int i = 0; i < PANEL_COUNT; i++) {
for (int j = 0; j < dice.size(); j++) {
Die temp = dice.get(j);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love it. temp isn't a great name but I like you pulling it into a variable. You could also have done

for(Dice item : this.dice){
  item.roll();
}

@ninjapanzer
Copy link
Member

:shipit: Looking good

@@ -30,7 +38,7 @@ public static int test_oneD6(){
Die die = new Die(6);
die.roll();
int dieValue = die.value();
if(dieValue >= 1 && dieValue <= 6){
if(dieValue < 1 || dieValue > 6){
return -1; // Means the die value is outside its bounds for a d6

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though I just changed the comment, I think this makes more sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants