Ver código fonte

I did the dice one : )

Whitney Martinez 8 anos atrás
pai
commit
0b82e178ac
3 arquivos alterados com 3 adições e 0 exclusões
  1. BIN
      .DS_Store
  2. BIN
      CodeSamples/.DS_Store
  3. 3
    0
      Whitney.md

BIN
.DS_Store Ver arquivo


BIN
CodeSamples/.DS_Store Ver arquivo


+ 3
- 0
Whitney.md Ver arquivo

@@ -0,0 +1,3 @@
1
+Dice code
2
+
3
+The dice rolls with a default of 6 sides, storing the results each time. You can also compare it with another object die to see whether they have the same sides or not. This is done with a class named equals that takes in an object and goes through a series of if statements. Overall, it uses a random class for the rolls, stores results along with the sides and when creating a new dice it stops the user from putting results higher than sides in numSides class.