two dice
TRANSCRIPT
![Page 1: Two Dice](https://reader031.vdocuments.us/reader031/viewer/2022030123/58a48eda1a28ab58738b7233/html5/thumbnails/1.jpg)
Two Dice Pig Game
CIS 133 – Fall 2014 – SCCC
Jeannine Jacobs&
Shane Batcher
Can I go first?
![Page 2: Two Dice](https://reader031.vdocuments.us/reader031/viewer/2022030123/58a48eda1a28ab58738b7233/html5/thumbnails/2.jpg)
UML Diagrams
Did you say Hunger Games?
Or Pig Game? I’m set either way.
TwoDicePig- turnTotal : int+ totalSetter (int : setTotal) : void+ totalGetter () : int+ rollDie () : int
PigDieGame (MAIN)
+ main (String:args) :
PlayerClass- name : String- score : int+ clearScore() :void+ decision () : int+ getName(String : nameGet) : String+ getScore(int : scoreGet) : int+ setName(String : nameSet) :void+ setScore(int : scoreSet) : void
DiceWindow- imagePanel (JPanel : )- imageLabel (JLabel : )+ diceWindow () : void
![Page 3: Two Dice](https://reader031.vdocuments.us/reader031/viewer/2022030123/58a48eda1a28ab58738b7233/html5/thumbnails/3.jpg)
Code Highlights
Method to Roll Dice
Rolled Two 2’s
Computer Player Decision Method
That is some wicked good code!
![Page 4: Two Dice](https://reader031.vdocuments.us/reader031/viewer/2022030123/58a48eda1a28ab58738b7233/html5/thumbnails/4.jpg)
Jeannine
You Go Grrrl!
Main Class Graphics Debugging Challenges
![Page 5: Two Dice](https://reader031.vdocuments.us/reader031/viewer/2022030123/58a48eda1a28ab58738b7233/html5/thumbnails/5.jpg)
Shane
Player Class Game Class Debugging ChallengesDude
.
![Page 6: Two Dice](https://reader031.vdocuments.us/reader031/viewer/2022030123/58a48eda1a28ab58738b7233/html5/thumbnails/6.jpg)
Game DemoWanna play for carrots?
![Page 7: Two Dice](https://reader031.vdocuments.us/reader031/viewer/2022030123/58a48eda1a28ab58738b7233/html5/thumbnails/7.jpg)
I’m training for a
re-match!