Formatting
This commit is contained in:
parent
6cc32231c3
commit
18d7f55771
1 changed files with 7 additions and 5 deletions
12
main.cc
12
main.cc
|
@ -1,6 +1,6 @@
|
||||||
#include <iostream>
|
|
||||||
#include <fstream>
|
|
||||||
#include "ordle.h"
|
#include "ordle.h"
|
||||||
|
#include <fstream>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
|
@ -16,10 +16,11 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
auto candidates = read_candidates(file);
|
auto candidates = read_candidates(file);
|
||||||
std::cout << "File (" << argv[1] << ") loaded. " << candidates.size() << " candidates available.\n";
|
std::cout << "File (" << argv[1] << ") loaded. " << candidates.size()
|
||||||
|
<< " candidates available.\n";
|
||||||
|
|
||||||
std::string wrong;
|
std::string wrong;
|
||||||
letters_and_indices green, yellow;
|
IndexMap green, yellow;
|
||||||
|
|
||||||
while (!candidates.empty()) {
|
while (!candidates.empty()) {
|
||||||
std::cout << "Enter wrong letters:\n";
|
std::cout << "Enter wrong letters:\n";
|
||||||
|
@ -43,7 +44,8 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
std::cout << "\n\n";
|
std::cout << "\n\n";
|
||||||
|
|
||||||
if (candidates.size() <= 1) break;
|
if (candidates.size() <= 1)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (candidates.empty()) {
|
if (candidates.empty()) {
|
||||||
|
|
Loading…
Reference in a new issue