Website Summary Files Commits Branches @commit @diff @stats
path: root / DiamondProblemAndPolymorphism / Chess / main.cpp
diff options
context:
space:
mode:
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();
+ }
+}