From 31fb6f26ea836f18754a2963ff433f55aafeec01 Mon Sep 17 00:00:00 2001 From: Angeld55 Date: Tue, 24 Sep 2019 00:26:23 +0300 Subject: Create main.cpp --- DiamondProblemAndPolymorphism/Chess/main.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 DiamondProblemAndPolymorphism/Chess/main.cpp diff --git a/DiamondProblemAndPolymorphism/Chess/main.cpp b/DiamondProblemAndPolymorphism/Chess/main.cpp new file mode 100644 index 0000000..2caaee8 --- /dev/null +++ b/DiamondProblemAndPolymorphism/Chess/main.cpp @@ -0,0 +1,16 @@ +#include +#include "Board.hpp" +using namespace std; + +int main() +{ + while (1) + { + Board b; + b.AddBishop(3, 4, true); + b.AddKnight(2, 3, false); + b.Print(); + b.MoveFigure(3, 4, 2, 3); + b.Print(); + } +} -- cgit v1.3.1-23-gd82d