Whitney Martinez пре 8 година
родитељ
комит
0b82e178ac
3 измењених фајлова са 3 додато и 0 уклоњено
  1. BIN
      .DS_Store
  2. BIN
      CodeSamples/.DS_Store
  3. 3
    0
      Whitney.md

BIN
CodeSamples/.DS_Store Прегледај датотеку


+ 3
- 0
Whitney.md Прегледај датотеку

@@ -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.