diff --git a/validate.hpp b/validate.hpp index 0337f79..887fe4f 100644 --- a/validate.hpp +++ b/validate.hpp @@ -42,3 +42,10 @@ vector validate(vector sequence, vector guess) { string format_response(vector response) { return to_string(response[0]) + " somewhere / " + to_string(response[1]) + "on the right spot\n"; } +string format_guess(vector guess) { + string r = ""; + for(int col : guess) + r += to_string(col) + " "; + r += "\n"; + return r; +}