commit 0b71b6789be6e4534cffd741a0d596690fa66351 Author: PoliEcho Date: Mon May 27 18:24:59 2024 +0200 initial diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..b30f676 --- /dev/null +++ b/main.cpp @@ -0,0 +1,72 @@ +#include + +using std::cout; +using std::cin; + +int main() { + +cout << R"( ___ __ _______ ___ ________ ________ _____ ______ _______ _________ ________ +|\ \ |\ \|\ ___ \ |\ \ |\ ____\|\ __ \|\ _ \ _ \|\ ___ \ |\___ ___\\ __ \ +\ \ \ \ \ \ \ __/|\ \ \ \ \ \___|\ \ \|\ \ \ \\\__\ \ \ \ __/| \|___ \ \_\ \ \|\ \ + \ \ \ __\ \ \ \ \_|/_\ \ \ \ \ \ \ \ \\\ \ \ \\|__| \ \ \ \_|/__ \ \ \ \ \ \\\ \ + \ \ \|\__\_\ \ \ \_|\ \ \ \____\ \ \____\ \ \\\ \ \ \ \ \ \ \ \_|\ \ \ \ \ \ \ \\\ \ + \ \____________\ \_______\ \_______\ \_______\ \_______\ \__\ \ \__\ \_______\ \ \__\ \ \_______\ + \|____________|\|_______|\|_______|\|_______|\|_______|\|__| \|__|\|_______| \|__| \|_______| + + + + ________ ___ ___ _______ ________ _________ ___ ___ _______ ________ _______ _________ ___ __ ________ ________ ___ __ +|\ __ \|\ \ / /|\ ___ \ |\ __ \ |\___ ___\\ \|\ \|\ ___ \ |\ ___ \|\ ___ \|\___ ___\\ \ |\ \|\ __ \|\ __ \|\ \|\ \ +\ \ \|\ \ \ \ / / | \ __/|\ \ \|\ \ \|___ \ \_\ \ \\\ \ \ __/| \ \ \\ \ \ \ __/\|___ \ \_\ \ \ \ \ \ \ \|\ \ \ \|\ \ \ \/ /|_ + \ \ \\\ \ \ \/ / / \ \ \_|/_\ \ _ _\ \ \ \ \ \ __ \ \ \_|/__ \ \ \\ \ \ \ \_|/__ \ \ \ \ \ \ __\ \ \ \ \\\ \ \ _ _\ \ ___ \ + \ \ \\\ \ \ / / \ \ \_|\ \ \ \\ \| \ \ \ \ \ \ \ \ \ \_|\ \ \ \ \\ \ \ \ \_|\ \ \ \ \ \ \ \|\__\_\ \ \ \\\ \ \ \\ \\ \ \\ \ \ + \ \_______\ \__/ / \ \_______\ \__\\ _\ \ \__\ \ \__\ \__\ \_______\ \ \__\\ \__\ \_______\ \ \__\ \ \____________\ \_______\ \__\\ _\\ \__\\ \__\ + \|_______|\|__|/ \|_______|\|__|\|__| \|__| \|__|\|__|\|_______| \|__| \|__|\|_______| \|__| \|____________|\|_______|\|__|\|__|\|__| \|__| + + + + _________ ___ ________ _________ ________ ________ _________ ________ _______ +|\___ ___\\ \|\ ____\ |\___ ___\\ __ \|\ ____\ |\___ ___\\ __ \|\ ___ \ +\|___ \ \_\ \ \ \ \___| ___________\|___ \ \_\ \ \|\ \ \ \___| ___________\|___ \ \_\ \ \|\ \ \ __/| + \ \ \ \ \ \ \ \ |\____________\ \ \ \ \ \ __ \ \ \ |\____________\ \ \ \ \ \ \\\ \ \ \_|/__ + \ \ \ \ \ \ \ \___\|____________| \ \ \ \ \ \ \ \ \ \___\|____________| \ \ \ \ \ \\\ \ \ \_|\ \ + \ \__\ \ \__\ \_______\ \ \__\ \ \__\ \__\ \_______\ \ \__\ \ \_______\ \_______\ + \|__| \|__|\|_______| \|__| \|__|\|__|\|_______| \|__| \|_______|\|_______| +)" << '\n'; + + +bool ishost; +bool repeat true; +{ +char charishost; +while (repeat) { + cout << "will you be host of guest of the game?\n" << "(h/g): "; + cin >> charishost; + + repeat=false; + + switch(charishost) { + case "h": + ishost = true; + break; + case "g": + ishost = false; + break; + default: + repeat = true; + } +} +} + +cout << "\nplease enter board size(for example: 3 for 3x3): "; +int board_size; +cin >> board_size; + +if(board_size <= 0) { + return 1; +} + +char board[board_size*board_size]; + + return 0; +} diff --git a/net.cpp b/net.cpp new file mode 100644 index 0000000..e69de29