From 950e021dccb328f7ece49dbcb55fb2c5aa1d8617 Mon Sep 17 00:00:00 2001
From: yangxvlin <1768528843@qq.com>
Date: Wed, 31 Mar 2021 23:08:27 +1100
Subject: [PATCH] add additional questions by xuliny

---
 src/Q5.java | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/Q5.java b/src/Q5.java
index bee9bc6..4687032 100644
--- a/src/Q5.java
+++ b/src/Q5.java
@@ -82,4 +82,12 @@ public class Q5 extends AbstractGame {
         // (a)
         ball.update();
     }
+
+    // Additional exercise:
+    //      1. create a Player.java class just like you abstract the Ball
+    //      2. use up, down, left, right to control the player, stop player moving if it is going to be outside of the window
+    //      3. select some if condition block in update method and
+    //             - right click it -> refactor -> Extract -> Method
+    //         in order to improve the readability of your code :)
+    // SWEN20003 is fun!
 }
-- 
GitLab