Presentation is loading. Please wait.

Presentation is loading. Please wait.

Informatics 122 Software Design II

Similar presentations


Presentation on theme: "Informatics 122 Software Design II"— Presentation transcript:

1 Informatics 122 Software Design II
Lecture 3 André van der Hoek Duplication of course material for any commercial purpose without the explicit written permission of the professor is prohibited. December 29, 2018 – 07:20:31 (c) 2006 University of California, Irvine – André van der Hoek

2 © 2006 University of California, Irvine – André van der Hoek
Today’s Lecture Examining our Theseus and the Minotaur design in detail Assignment 2b December 29, 2018 – 07:20:31 © 2006 University of California, Irvine – André van der Hoek

3 Theseus and the Minotaur
What worked in this design? What did not work in this design? What was the intent of the design? What corrections did you make? What other problems do you foresee? What do you think is the overall quality of the original design? What do you think is the overall quality of your final design? December 29, 2018 – 07:20:31 © 2006 University of California, Irvine – André van der Hoek

4 Assignment 2b: Basic Structure
Design and implement a modified version of the game “Theseus and the Minotaur” You may use your design from Assignment 2a as the basis, but you may also build an entirely new design from scratch, as long as all your decisions are properly documented and your implementation follows your new design December 29, 2018 – 07:20:31 © 2006 University of California, Irvine – André van der Hoek

5 Assignment 2b: Game Rules
The starting set of game rules is the same as in Assignment 2a, including the rules for water Four new game rules multiple Minotaur player health and stunned Minotaur food pellets for health food pellets for victory December 29, 2018 – 07:20:31 © 2006 University of California, Irvine – André van der Hoek

6 Assignment 2b: New Game Rule #1
A game can have multiple Minotaur Multiple Minotaur cannot be in the same space at the same time December 29, 2018 – 07:20:31 © 2006 University of California, Irvine – André van der Hoek

7 Assignment 2b: New Game Rule #2
A player starts with a health of 75 Each time the Minotaur captures the player, the player’s health reduces by 25, and the Minotaur is stunned and pauses, letting the player take three turns before it moves again A game is over when the player’s health reaches 0 (defeat!) A player’s health should be shown inside its visual representation on the screen December 29, 2018 – 07:20:31 © 2006 University of California, Irvine – André van der Hoek

8 Assignment 2b: New Game Rule #3
By eating a food pellet, a player ups their health by 10 A player can have a maximum health of 100 A player cannot deliberately “step on” a Minotaur to eat the food pellet underneath it Minotaur do not eat food pellets December 29, 2018 – 07:20:31 © 2006 University of California, Irvine – André van der Hoek

9 Assignment 2b: New Game Rule #4
There is no longer an exit A player wins by eating all food pellets December 29, 2018 – 07:20:31 © 2006 University of California, Irvine – André van der Hoek

10 Assignment 2b: Input File Encoding
Enhanced encoding of the input file 0 = empty space (accessible to Theseus and the Minotaur) 1 = brick (not accessible to Theseus and the Minotaur) F = food pellet P = player M = Minotaur December 29, 2018 – 07:20:31 © 2006 University of California, Irvine – André van der Hoek

11 Assignment 2b: Deliverables
A print-out of your final UML design A print-out of your design rationale which critical design decisions did you make, and why? A print-out of your source code A running version of your game (as a JAR) Print-outs are to be handed in in class, the JAR must be ed to and December 29, 2018 – 07:20:31 © 2006 University of California, Irvine – André van der Hoek


Download ppt "Informatics 122 Software Design II"

Similar presentations


Ads by Google