Formatting printable guesses
This commit is contained in:
parent
13aaaadcc0
commit
eabdc8757e
1 changed files with 7 additions and 0 deletions
|
@ -42,3 +42,10 @@ vector<int> validate(vector<int> sequence, vector<int> guess) {
|
|||
string format_response(vector<int> response) {
|
||||
return to_string(response[0]) + " somewhere / " + to_string(response[1]) + "on the right spot\n";
|
||||
}
|
||||
string format_guess(vector<int> guess) {
|
||||
string r = "";
|
||||
for(int col : guess)
|
||||
r += to_string(col) + " ";
|
||||
r += "\n";
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue