-
Notifications
You must be signed in to change notification settings - Fork 0
/
intro.cpp
59 lines (54 loc) · 3.17 KB
/
intro.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <iostream>
#include <thread>
#include <chrono>
// clearScreen clears the terminal
void clearScreen()
{
#ifdef __linux__
system("clear");
#elifdef __APPLE__
system("clear");
#elifdef _WIN32
system("cls");
#else
return;
#endif
}
// displayAnimation displays unicode characters to spell out TIC TAC TOE
void displayAnimation()
{
clearScreen();
std::cout << '\n'
<< " LET'S PLAY...." << '\n'
<< '\n'
<< " ████████╗██╗ ██████╗ " << '\n'
<< " ╚══██╔══╝██║██╔════╝ " << '\n'
<< " ██║ ██║██║ " << '\n'
<< " ██║ ██║██║ " << '\n'
<< " ██║ ██║╚██████╗ " << '\n'
<< " ╚═╝ ╚═╝ ╚═════╝ " << '\n';
std::this_thread::sleep_for(std::chrono::seconds(1));
clearScreen();
std::cout << '\n'
<< " LET'S PLAY...." << '\n'
<< '\n'
<< " ████████╗██╗ ██████╗ ████████╗ █████╗ ██████╗ " << '\n'
<< " ╚══██╔══╝██║██╔════╝ ╚══██╔══╝██╔══██╗██╔════╝ " << '\n'
<< " ██║ ██║██║ ██║ ███████║██║ " << '\n'
<< " ██║ ██║██║ ██║ ██╔══██║██║ " << '\n'
<< " ██║ ██║╚██████╗ ██║ ██║ ██║╚██████╗ " << '\n'
<< " ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ " << '\n';
std::this_thread::sleep_for(std::chrono::seconds(1));
clearScreen();
std::cout << '\n'
<< " LET'S PLAY...." << '\n'
<< '\n'
<< " ████████╗██╗ ██████╗ ████████╗ █████╗ ██████╗ ████████╗ ██████╗ ███████╗ " << '\n'
<< " ╚══██╔══╝██║██╔════╝ ╚══██╔══╝██╔══██╗██╔════╝ ╚══██╔══╝██╔═══██╗██╔════╝ " << '\n'
<< " ██║ ██║██║ ██║ ███████║██║ ██║ ██║ ██║█████╗ " << '\n'
<< " ██║ ██║██║ ██║ ██╔══██║██║ ██║ ██║ ██║██╔══╝ " << '\n'
<< " ██║ ██║╚██████╗ ██║ ██║ ██║╚██████╗ ██║ ╚██████╔╝███████╗ " << '\n'
<< " ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝ " << '\n';
std::this_thread::sleep_for(std::chrono::seconds(1));
clearScreen();
}