SlideShare a Scribd company logo
1 of 7
Two Dice
Pig Game
CIS 133 – Fall 2014 – SCCC
Jeannine Jacobs
&
Shane Batcher
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
Code Highlights
Method to Roll Dice
Rolled Two 2’s
Computer Player Decision Method
Jeannine
You Go Grrrl!
 Main Class
 Graphics
 Debugging
 Challenges
Shane
 Player Class
 Game Class
 Debugging
 ChallengesDude.
Game Demo
Wanna play for carrots?
I’m training for
a
re-match!

More Related Content

What's hot

اسئلة صح او خطأ رياضيات
اسئلة صح او خطأ رياضياتاسئلة صح او خطأ رياضيات
اسئلة صح او خطأ رياضياتFadil Alahlafi
 
6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem areadicosmo178
 
The Ring programming language version 1.9 book - Part 69 of 210
The Ring programming language version 1.9 book - Part 69 of 210The Ring programming language version 1.9 book - Part 69 of 210
The Ring programming language version 1.9 book - Part 69 of 210Mahmoud Samir Fayed
 
ゲーム理論BASIC 第31回 -配分の支配とコア-
ゲーム理論BASIC 第31回 -配分の支配とコア-ゲーム理論BASIC 第31回 -配分の支配とコア-
ゲーム理論BASIC 第31回 -配分の支配とコア-ssusere0a682
 
solucionario de purcell 2
solucionario de purcell 2solucionario de purcell 2
solucionario de purcell 2José Encalada
 
Test Integers
Test  IntegersTest  Integers
Test Integersmdanescu
 
Building Functional Islands
Building Functional IslandsBuilding Functional Islands
Building Functional IslandsMark Jones
 
The Ring programming language version 1.8 book - Part 66 of 202
The Ring programming language version 1.8 book - Part 66 of 202The Ring programming language version 1.8 book - Part 66 of 202
The Ring programming language version 1.8 book - Part 66 of 202Mahmoud Samir Fayed
 
The Ring programming language version 1.2 book - Part 50 of 84
The Ring programming language version 1.2 book - Part 50 of 84The Ring programming language version 1.2 book - Part 50 of 84
The Ring programming language version 1.2 book - Part 50 of 84Mahmoud Samir Fayed
 

What's hot (15)

اسئلة صح او خطأ رياضيات
اسئلة صح او خطأ رياضياتاسئلة صح او خطأ رياضيات
اسئلة صح او خطأ رياضيات
 
6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area
 
The Ring programming language version 1.9 book - Part 69 of 210
The Ring programming language version 1.9 book - Part 69 of 210The Ring programming language version 1.9 book - Part 69 of 210
The Ring programming language version 1.9 book - Part 69 of 210
 
ゲーム理論BASIC 第31回 -配分の支配とコア-
ゲーム理論BASIC 第31回 -配分の支配とコア-ゲーム理論BASIC 第31回 -配分の支配とコア-
ゲーム理論BASIC 第31回 -配分の支配とコア-
 
Tabla de derivadas
Tabla de derivadasTabla de derivadas
Tabla de derivadas
 
Game dd
Game ddGame dd
Game dd
 
Intigrations
IntigrationsIntigrations
Intigrations
 
Capitulo 5 Soluciones Purcell 9na Edicion
Capitulo 5 Soluciones Purcell 9na EdicionCapitulo 5 Soluciones Purcell 9na Edicion
Capitulo 5 Soluciones Purcell 9na Edicion
 
solucionario de purcell 2
solucionario de purcell 2solucionario de purcell 2
solucionario de purcell 2
 
Test Integers
Test  IntegersTest  Integers
Test Integers
 
Building Functional Islands
Building Functional IslandsBuilding Functional Islands
Building Functional Islands
 
Capitulo 4 Soluciones Purcell 9na Edicion
Capitulo 4 Soluciones Purcell 9na EdicionCapitulo 4 Soluciones Purcell 9na Edicion
Capitulo 4 Soluciones Purcell 9na Edicion
 
The Ring programming language version 1.8 book - Part 66 of 202
The Ring programming language version 1.8 book - Part 66 of 202The Ring programming language version 1.8 book - Part 66 of 202
The Ring programming language version 1.8 book - Part 66 of 202
 
The Ring programming language version 1.2 book - Part 50 of 84
The Ring programming language version 1.2 book - Part 50 of 84The Ring programming language version 1.2 book - Part 50 of 84
The Ring programming language version 1.2 book - Part 50 of 84
 
Capitulo 7 Soluciones Purcell 9na Edicion
Capitulo 7 Soluciones Purcell 9na EdicionCapitulo 7 Soluciones Purcell 9na Edicion
Capitulo 7 Soluciones Purcell 9na Edicion
 

Viewers also liked

Development pro forma print
Development pro forma   printDevelopment pro forma   print
Development pro forma printJosh Sunley
 
Manipulacion de datos y funciones agregadas informix
Manipulacion de datos y funciones agregadas   informixManipulacion de datos y funciones agregadas   informix
Manipulacion de datos y funciones agregadas informixSebastian Urrutia
 
FFicili_Curriculum - v1.3 - 07092014 - ENG
FFicili_Curriculum - v1.3 - 07092014 - ENGFFicili_Curriculum - v1.3 - 07092014 - ENG
FFicili_Curriculum - v1.3 - 07092014 - ENGFrancesco Ficili
 
Manipulacion de datos informix
Manipulacion de datos informixManipulacion de datos informix
Manipulacion de datos informixSebastian Urrutia
 
Microsoft power point patrimonio cultural, ciudad de la plata
Microsoft power point   patrimonio cultural, ciudad de la plataMicrosoft power point   patrimonio cultural, ciudad de la plata
Microsoft power point patrimonio cultural, ciudad de la plataMica Favre
 
Aula 12 pais caretas
Aula 12   pais caretasAula 12   pais caretas
Aula 12 pais caretasFatoze
 
Lampu Hias Dekorasi Natal dan Lampion
Lampu Hias Dekorasi Natal dan LampionLampu Hias Dekorasi Natal dan Lampion
Lampu Hias Dekorasi Natal dan LampionHASTANA RAJA
 

Viewers also liked (12)

Development pro forma print
Development pro forma   printDevelopment pro forma   print
Development pro forma print
 
Manipulacion de datos y funciones agregadas informix
Manipulacion de datos y funciones agregadas   informixManipulacion de datos y funciones agregadas   informix
Manipulacion de datos y funciones agregadas informix
 
titulo phd
titulo phdtitulo phd
titulo phd
 
Sebastia giraldo
Sebastia giraldoSebastia giraldo
Sebastia giraldo
 
FFicili_Curriculum - v1.3 - 07092014 - ENG
FFicili_Curriculum - v1.3 - 07092014 - ENGFFicili_Curriculum - v1.3 - 07092014 - ENG
FFicili_Curriculum - v1.3 - 07092014 - ENG
 
Manipulacion de datos informix
Manipulacion de datos informixManipulacion de datos informix
Manipulacion de datos informix
 
Biblioteca Web 2.0
Biblioteca Web 2.0Biblioteca Web 2.0
Biblioteca Web 2.0
 
Microsoft power point patrimonio cultural, ciudad de la plata
Microsoft power point   patrimonio cultural, ciudad de la plataMicrosoft power point   patrimonio cultural, ciudad de la plata
Microsoft power point patrimonio cultural, ciudad de la plata
 
Aula 12 pais caretas
Aula 12   pais caretasAula 12   pais caretas
Aula 12 pais caretas
 
Lampu Hias Dekorasi Natal dan Lampion
Lampu Hias Dekorasi Natal dan LampionLampu Hias Dekorasi Natal dan Lampion
Lampu Hias Dekorasi Natal dan Lampion
 
Maria Mariño
Maria MariñoMaria Mariño
Maria Mariño
 
PROVINCIA DE ESPINAR
PROVINCIA DE ESPINARPROVINCIA DE ESPINAR
PROVINCIA DE ESPINAR
 

Similar to Two Dice

The Ring programming language version 1.4.1 book - Part 19 of 31
The Ring programming language version 1.4.1 book - Part 19 of 31The Ring programming language version 1.4.1 book - Part 19 of 31
The Ring programming language version 1.4.1 book - Part 19 of 31Mahmoud Samir Fayed
 
The Ring programming language version 1.7 book - Part 74 of 196
The Ring programming language version 1.7 book - Part 74 of 196The Ring programming language version 1.7 book - Part 74 of 196
The Ring programming language version 1.7 book - Part 74 of 196Mahmoud Samir Fayed
 
Bowling game kata
Bowling game kataBowling game kata
Bowling game kataCarol Bruno
 
Bowling game kata
Bowling game kataBowling game kata
Bowling game kataJoe McCall
 
Bowling game kata
Bowling game kataBowling game kata
Bowling game kataRahman Ash
 
The Ring programming language version 1.8 book - Part 76 of 202
The Ring programming language version 1.8 book - Part 76 of 202The Ring programming language version 1.8 book - Part 76 of 202
The Ring programming language version 1.8 book - Part 76 of 202Mahmoud Samir Fayed
 
Aptitude 30 questions paper
Aptitude         30 questions paperAptitude         30 questions paper
Aptitude 30 questions paperpuneet8589
 
People detection in a video
People detection in a videoPeople detection in a video
People detection in a videoYonatan Katz
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_22-Feb-2021_L9-...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_22-Feb-2021_L9-...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_22-Feb-2021_L9-...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_22-Feb-2021_L9-...MaruMengesha
 
a data driven game object system
a data driven game object systema data driven game object system
a data driven game object systemmaa77
 
Java term project final report
Java term project final reportJava term project final report
Java term project final reportJiwon Han
 
The Ring programming language version 1.2 book - Part 36 of 84
The Ring programming language version 1.2 book - Part 36 of 84The Ring programming language version 1.2 book - Part 36 of 84
The Ring programming language version 1.2 book - Part 36 of 84Mahmoud Samir Fayed
 
Let's make a game for the Playdate
Let's make a game for the PlaydateLet's make a game for the Playdate
Let's make a game for the PlaydateGiorgio Pomettini
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...MaruMengesha
 
The Ring programming language version 1.5.3 book - Part 58 of 184
The Ring programming language version 1.5.3 book - Part 58 of 184The Ring programming language version 1.5.3 book - Part 58 of 184
The Ring programming language version 1.5.3 book - Part 58 of 184Mahmoud Samir Fayed
 
The Ring programming language version 1.5.3 book - Part 48 of 184
The Ring programming language version 1.5.3 book - Part 48 of 184The Ring programming language version 1.5.3 book - Part 48 of 184
The Ring programming language version 1.5.3 book - Part 48 of 184Mahmoud Samir Fayed
 
19012011102_Nayan Oza_Practical-7_AI.pdf
19012011102_Nayan Oza_Practical-7_AI.pdf19012011102_Nayan Oza_Practical-7_AI.pdf
19012011102_Nayan Oza_Practical-7_AI.pdfNayanOza
 

Similar to Two Dice (20)

The Ring programming language version 1.4.1 book - Part 19 of 31
The Ring programming language version 1.4.1 book - Part 19 of 31The Ring programming language version 1.4.1 book - Part 19 of 31
The Ring programming language version 1.4.1 book - Part 19 of 31
 
The Ring programming language version 1.7 book - Part 74 of 196
The Ring programming language version 1.7 book - Part 74 of 196The Ring programming language version 1.7 book - Part 74 of 196
The Ring programming language version 1.7 book - Part 74 of 196
 
Bowling game kata
Bowling game kataBowling game kata
Bowling game kata
 
Bowling game kata
Bowling game kataBowling game kata
Bowling game kata
 
Bowling game kata
Bowling game kataBowling game kata
Bowling game kata
 
The Ring programming language version 1.8 book - Part 76 of 202
The Ring programming language version 1.8 book - Part 76 of 202The Ring programming language version 1.8 book - Part 76 of 202
The Ring programming language version 1.8 book - Part 76 of 202
 
Provenance Games
Provenance GamesProvenance Games
Provenance Games
 
Aptitude 30 questions paper
Aptitude         30 questions paperAptitude         30 questions paper
Aptitude 30 questions paper
 
People detection in a video
People detection in a videoPeople detection in a video
People detection in a video
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_22-Feb-2021_L9-...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_22-Feb-2021_L9-...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_22-Feb-2021_L9-...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_22-Feb-2021_L9-...
 
a data driven game object system
a data driven game object systema data driven game object system
a data driven game object system
 
Java term project final report
Java term project final reportJava term project final report
Java term project final report
 
The Ring programming language version 1.2 book - Part 36 of 84
The Ring programming language version 1.2 book - Part 36 of 84The Ring programming language version 1.2 book - Part 36 of 84
The Ring programming language version 1.2 book - Part 36 of 84
 
Pygame presentation
Pygame presentationPygame presentation
Pygame presentation
 
Let's make a game for the Playdate
Let's make a game for the PlaydateLet's make a game for the Playdate
Let's make a game for the Playdate
 
Bow&arrow game
Bow&arrow gameBow&arrow game
Bow&arrow game
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
 
The Ring programming language version 1.5.3 book - Part 58 of 184
The Ring programming language version 1.5.3 book - Part 58 of 184The Ring programming language version 1.5.3 book - Part 58 of 184
The Ring programming language version 1.5.3 book - Part 58 of 184
 
The Ring programming language version 1.5.3 book - Part 48 of 184
The Ring programming language version 1.5.3 book - Part 48 of 184The Ring programming language version 1.5.3 book - Part 48 of 184
The Ring programming language version 1.5.3 book - Part 48 of 184
 
19012011102_Nayan Oza_Practical-7_AI.pdf
19012011102_Nayan Oza_Practical-7_AI.pdf19012011102_Nayan Oza_Practical-7_AI.pdf
19012011102_Nayan Oza_Practical-7_AI.pdf
 

Two Dice

  • 1. Two Dice Pig Game CIS 133 – Fall 2014 – SCCC Jeannine Jacobs & Shane Batcher
  • 2. 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
  • 3. Code Highlights Method to Roll Dice Rolled Two 2’s Computer Player Decision Method
  • 4. Jeannine You Go Grrrl!  Main Class  Graphics  Debugging  Challenges
  • 5. Shane  Player Class  Game Class  Debugging  ChallengesDude.
  • 6. Game Demo Wanna play for carrots?