two dice

7
Two Dice Pig Game CIS 133 – Fall 2014 – SCCC Jeannine Jacobs & Shane Batcher Can I go first?

Upload: jeannine-jacobs

Post on 16-Feb-2017

84 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Two Dice

Two Dice Pig Game

CIS 133 – Fall 2014 – SCCC

Jeannine Jacobs&

Shane Batcher

Can I go first?

Page 2: Two Dice

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

Code Highlights

Method to Roll Dice

Rolled Two 2’s

Computer Player Decision Method

That is some wicked good code!

Page 4: Two Dice

Jeannine

You Go Grrrl!

Main Class Graphics Debugging Challenges

Page 5: Two Dice

Shane

Player Class Game Class Debugging ChallengesDude

.

Page 6: Two Dice

Game DemoWanna play for carrots?

Page 7: Two Dice

I’m training for a

re-match!