Lecture07-CodeBreaker-part1-3pp

Is there something missing in the current design yes

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 01 How to start? Start Ask first guess while loop: 1.  Ask the user for a guess; 2.  Test if the guess is valid 3.  Give feedback to the user refine check guess give feedback FALSE correct guess? TRUE print hurray! Stop Ask new guess check guess 10 CMPUT174  ­ ­ Design & Problem Solving Iterate and refine • Are we ready to start coding?   This is by far the hardest ques:on   There is no right/wrong here Start • Figure out whether the design you have meets all the specifica:ons Ask first guess   If you think so, move on check guess give feedback FALSE correct guess? TRUE print hurray! • If something is missing, you can:   Make a note and move on   Iterate the design at this stage Stop Ask new guess check guess 11 CMPUT174  ­ ­ Design & Problem Solving Iterate or refine? • Is there something missing in the current design?   Yes: the diagram does not capture that the game go...
View Full Document

This document was uploaded on 03/02/2014.

Ask a homework question - tutors are online