Formatting

This commit is contained in:
Imbus 2024-12-26 16:00:53 +01:00
parent 6cc32231c3
commit 18d7f55771

12
main.cc
View file

@ -1,6 +1,6 @@
#include <iostream>
#include <fstream>
#include "ordle.h"
#include <fstream>
#include <iostream>
int main(int argc, char *argv[]) {
if (argc < 2) {
@ -16,10 +16,11 @@ int main(int argc, char *argv[]) {
while (true) {
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;
letters_and_indices green, yellow;
IndexMap green, yellow;
while (!candidates.empty()) {
std::cout << "Enter wrong letters:\n";
@ -43,7 +44,8 @@ int main(int argc, char *argv[]) {
}
std::cout << "\n\n";
if (candidates.size() <= 1) break;
if (candidates.size() <= 1)
break;
}
if (candidates.empty()) {