Lecture07-CodeBreaker-part1-3pp

Revise your design as needed cmput174 design problem

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: give feedback check guess TRUE print hurray! FALSE right guess? print sorry!   Check guess, give feedback Stop Stop continue = count < limit and guess != code 14 CMPUT174  ­ ­ Design & Problem Solving Iterate and refine • Now focus on the missing pieces • How do we check if a guess is valid? check guess • How do give feedback to the user?   Number of “pegs” of right color and place   Number of “pegs” of right color but out of place CMPUT174  ­ ­ Design & Problem Solving...
View Full Document

Ask a homework question - tutors are online