void firstVersion() { const std::string white = "\u2B1C"; const std::string black = "\u2B1B"; std::string brett[8][8]; std::string field; for (int y = 0; y < 8; y++) { for (int x = 0; x < 8; x++) { if (y % 2 == 0) { field = (x % 2 == 0) ? "\u2B1C" : "\u2B1B"; } else { field = (x % 2 == 0) ? "⬛" : "⬜"; } std::cout << field; } std::cout << "\n"; } } void secondVersion() { //wchar_t t = 0x25FF; // Horizontale Linie u2500 // Vertikale Linie u2502 // Top Right Corner u250C // Top Left Corner u2510 // Bottom Right Corner u2514 // Bottom Left Corner u2518 std::string topRightCorner = "\u2554"; std::string topLeftCorner = "\u2557"; std::string bottomLeftCorner = "\u255A"; std::string bottomRightCorner = "\u255D"; std::string horizontalLine = "\u2550\u2550"; std::string verticalLine = "\u2551"; std::string crossSuc = "\u256C"; std::string leftSide = "\u2560"; std::string rightSide = "\u2563"; std::string topSide = "\u2566"; std::string bottomSide = "\u2569"; std::string firstLine = "\u2554\u2550\u2566"; std::string line; for (int row = 0; row < 9; ++row) { for (int col = 0; col < 8; ++col) { if (row == 0 && col > 0) line += topSide + horizontalLine; if (row == 8 && col > 0) line += bottomSide + horizontalLine; if (col == 0 && row < 8 && row > 0) line += leftSide + horizontalLine; if (row > 0 && row < 8 && col > 0) line += crossSuc + horizontalLine; if (col == 7 && row < 8 && row > 0) line += rightSide; if (row == 0 && col == 0) line += topRightCorner + horizontalLine; if (row == 8 && col == 0) line += bottomLeftCorner + horizontalLine; if (row == 0 && col == 7) line += topLeftCorner + "\n" + verticalLine; if (row == 8 && col == 7) line += bottomRightCorner; } line += "\n"; }