aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk6/lab5/Bug.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ee1301/wk6/lab5/Bug.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/ee1301/wk6/lab5/Bug.cpp b/ee1301/wk6/lab5/Bug.cpp
new file mode 100644
index 0000000..337e84b
--- /dev/null
+++ b/ee1301/wk6/lab5/Bug.cpp
@@ -0,0 +1,12 @@
+#include "Bug.hpp"
+
+int main() {
+ Bug buggy(10);
+ buggy.display();
+ buggy.move();
+ buggy.display();
+ buggy.turn();
+ buggy.display();
+ buggy.move();
+ buggy.display();
+}