-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.cpp
64 lines (57 loc) · 1.35 KB
/
demo.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
60
61
62
63
64
// *********************************************************
// demo.cpp
//
// This program is intended to demonstrate helper functions
// and/or classes in the "pf" folder.
//
// This program will be updated if more helper functions
// and/or classes are given from time to time.
//
// Do not modify/use this program to do your assignment.
// Instead, use "main.cpp".
//
// To compile this program, type the following in the terminal
//
// For CMD or PowerShell (in Windows)
//
// g++ pf\*.cpp demo.cpp -DDEMO
//
// For Bash (in MacOS or Linux)
//
// g++ pf/*.cpp demo.cpp -DDEMO
//
// *********************************************************
// Prepend "pf/" to filename to include source code in
// the "pf" folder.
#include "pf/helper.h"
#include <iostream>
using namespace std;
void DemoPause()
{
cout << "Pausing Now" << endl;
pf::Pause();
cout << endl;
}
void DemoClearScreen()
{
cout << "Pausing and Clearing Screen Now" << endl;
pf::Pause();
pf::ClearScreen();
cout << endl;
}
void DemoCreateGameBoard()
{
cout << "Create Game Board" << endl;
pf::CreateGameBoard();
pf::ShowGameBoard();
}
#ifdef DEMO
int main()
{
cout << "===== Begin Demo =====" << endl;
// DemoPause();
// DemoClearScreen();
DemoCreateGameBoard();
cout << "===== End Demo =====" << endl;
}
#endif