Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit31fb6f26ea836f18754a2963ff433f55aafeec01 (patch)
Author
 Angeld55 <achi_d@abv.bg>
2019-09-24 00:26:23 +0300
Committer
 GitHub <noreply@github.com>
2019-09-24 00:26:23 +0300
Filesff7569b4d0b7ccf6d48a8f68a899e764904349a0
Object-oriented_programming_FMI-31fb6f26ea836f18754a2963ff433f55aafeec01.tar
Object-oriented_programming_FMI-31fb6f26ea836f18754a2963ff433f55aafeec01.tar.gz
Object-oriented_programming_FMI-31fb6f26ea836f18754a2963ff433f55aafeec01.zip
Parent6428ea495e6f1a746f6694bbafa07af9d4144fc4 (diff)
Create main.cpp
1 files changed, 16 insertions, 0 deletions
-rw-r--r--DiamondProblemAndPolymorphism/Chess/main.cpp16
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 <iostream>
+#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();
+ }
+}