initial
This commit is contained in:
commit
0b71b6789b
72
main.cpp
Normal file
72
main.cpp
Normal file
@ -0,0 +1,72 @@
|
||||
#include<iostream>
|
||||
|
||||
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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user