{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

What is your next guess type in the characters for

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: cally about this assignment is how to generate a result given a secret code and a guess. It is important to realize black pegs should be generated first and that a given peg from the secret code and the guess cannot be reused once matched. Here are some examples: Code: RRRR Guess: BBBB This one is easy. There aren't any B's in the code, so the guess of BBBB would generate a result with no pegs. Code: RRRR Guess: RBBY The R in the first position of the guess matches up exactly with the R in...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online