Rearrange macros
This commit is contained in:
parent
4e7bfee548
commit
6c2f10b6c0
1 changed files with 4 additions and 4 deletions
|
@ -7,10 +7,6 @@ using std::string;
|
||||||
using std::to_string;
|
using std::to_string;
|
||||||
|
|
||||||
|
|
||||||
#define YELLOW "\033[33m"
|
|
||||||
#define GREEN "\033[32m"
|
|
||||||
#define BACK "\033[0m"
|
|
||||||
|
|
||||||
vector<int> validate(vector<int> sequence, vector<int> guess) {
|
vector<int> validate(vector<int> sequence, vector<int> guess) {
|
||||||
int S = sequence.size();
|
int S = sequence.size();
|
||||||
|
|
||||||
|
@ -44,6 +40,10 @@ vector<int> validate(vector<int> sequence, vector<int> guess) {
|
||||||
return {r_somewhere, r_correct};
|
return {r_somewhere, r_correct};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define YELLOW "\033[33m"
|
||||||
|
#define GREEN "\033[32m"
|
||||||
|
#define BACK "\033[0m"
|
||||||
|
|
||||||
string format_response(vector<int> response) {
|
string format_response(vector<int> response) {
|
||||||
return YELLOW + to_string(response[0]) + BACK + " / " +
|
return YELLOW + to_string(response[0]) + BACK + " / " +
|
||||||
GREEN + to_string(response[1]) + BACK + "\n";
|
GREEN + to_string(response[1]) + BACK + "\n";
|
||||||
|
|
Loading…
Reference in a new issue