admin: Changed links to still work after fixes

This commit is contained in:
Nathan Woodburn 2023-05-01 19:39:09 +10:00
parent f3b37d395c
commit 8b142ad434
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -4,7 +4,7 @@ Reviewed by: Nathan Woodburn, u7156831
Reviewing code written by: Immanuel Alvaro Bhirawa, u7280427 Reviewing code written by: Immanuel Alvaro Bhirawa, u7280427
Component: `isMoveValid` from [BlueLagoon.java L145-L311](https://gitlab.cecs.anu.edu.au/u7156831/comp1110-ass2/-/blob/master/src/comp1110/ass2/BlueLagoon.java#L145-L311) Component: `isMoveValid` from [BlueLagoon.java L145-L311](https://gitlab.cecs.anu.edu.au/u7156831/comp1110-ass2/-/blob/b8487c3c0826bef4e676a13f8ea05c578c73d2de/src/comp1110/ass2/BlueLagoon.java#L145-L311)
### Comments ### Comments
@ -17,10 +17,10 @@ Component: `isMoveValid` from [BlueLagoon.java L145-L311](https://gitlab.cecs.an
- Places to improve: - Places to improve:
- Some comments are not needed, such as commenting about well named variables. - Some comments are not needed, such as commenting about well named variables.
```java ```java
int numberOfPlayer = 0; // Number of player int numberOfPlayer = 0; // Number of player
String playerId = ""; // Player ID String playerId = ""; // Player ID
``` ```
- Duplicate code could be avoided. For example [this switch](https://gitlab.cecs.anu.edu.au/u7156831/comp1110-ass2/-/blob/b8487c3c0826bef4e676a13f8ea05c578c73d2de/src/comp1110/ass2/BlueLagoon.java#L231-L256) could be shortened to the below to avoid duplicate code. - Duplicate code could be avoided. For example [this switch](https://gitlab.cecs.anu.edu.au/u7156831/comp1110-ass2/-/blob/b8487c3c0826bef4e676a13f8ea05c578c73d2de/src/comp1110/ass2/BlueLagoon.java#L231-L256) could be shortened to the below to avoid duplicate code.
```java ```java
switch (numberOfPlayer) { switch (numberOfPlayer) {