From e4d5e40ea952859da7a28f3450bfef8977398ca1 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 27 Mar 2023 23:05:06 +1100 Subject: [PATCH] admin: Added originality --- admin/C-best-u7156831.yml | 51 +++++++++++++++++++++++++++++++ admin/C-originality.yml | 26 ++++++++-------- src/comp1110/ass2/BlueLagoon.java | 3 +- 3 files changed, 66 insertions(+), 14 deletions(-) create mode 100644 admin/C-best-u7156831.yml diff --git a/admin/C-best-u7156831.yml b/admin/C-best-u7156831.yml new file mode 100644 index 0000000..a150f2b --- /dev/null +++ b/admin/C-best-u7156831.yml @@ -0,0 +1,51 @@ +# IMPORTANT: It is very important that you correctly complete this originality +# statement. +# +# This is your statement of your submitted work being your own. +# Incorrectly filling out this statement could lead to charges +# of academic misconduct. +# +# For information on how to fill this out correctly, see +# https://cs.anu.edu.au/courses/comp1110/help/faq/09-originality/ +# + +declaration: >- + I submit the work below for assessment as my best work. I declare that this + is entirely my own work, with the following documented exceptions: + +# Use this to list names of people who you collaborated with, and a +# comment about what you collaborated on. +# +# Add as many "name+comment" entries as necessary +# (or remove it altogether if you haven't collaborated with anyone) +# collaboration: +# - name: +# comment: >- + +# Use this to list any code that you used that you did not write, +# aside from code provided by the lecturer. Provide a comment +# explaining your use and the URL to that code and the licence for +# that code +# +# Add as many "url+licence+comment" entries as necessary +# (or remove it altogether if you haven't used any external code) +# code: +# - comment: +# url: +# licence: + +# I wish to submit the following classes as entirely my own (remove this if +# you want to just submit methods): +# class: +# - +# - + +# I wish to submit the following methods as entirely my own (remove this if +# you want to just submit classes): +method: + - isStateStringWellFormed + - distributeResources + +# sign *your* name and uid here +name: Nathan Woodburn +uid: u7156831 diff --git a/admin/C-originality.yml b/admin/C-originality.yml index 54b883a..32375af 100644 --- a/admin/C-originality.yml +++ b/admin/C-originality.yml @@ -19,9 +19,9 @@ declaration: >- # # Add as many "name+comment" entries as necessary # (or remove it altogether if you haven't collaborated with anyone) -collaboration: - - name: - comment: >- +# collaboration: +# - name: +# comment: >- # Use this to list any code that you used that you did not write, # aside from code provided by the lecturer. Provide a comment @@ -30,10 +30,10 @@ collaboration: # # Add as many "url+licence+comment" entries as necessary # (or remove it altogether if you haven't used any external code) -code: - - comment: - url: - licence: +# code: +# - comment: +# url: +# licence: # Use this to list any assets (artwork, sound, etc) that you used. # Provide a comment explaining your use of that asset and the URL @@ -41,17 +41,17 @@ code: # # Add as many "url+licence+comment" entries as necessary # (or remove it altogether if you haven't used any external assets) -assets: - - comment: - url: - licence: +# assets: +# - comment: +# url: +# licence: # Sign *your* name and uids here. (Remove entries if you have fewer # than three members.) signatures: - - name: - uid: + - name: Nathan Woodburn + uid: u7156831 - name: uid: - name: diff --git a/src/comp1110/ass2/BlueLagoon.java b/src/comp1110/ass2/BlueLagoon.java index dbb15e5..629e07d 100644 --- a/src/comp1110/ass2/BlueLagoon.java +++ b/src/comp1110/ass2/BlueLagoon.java @@ -136,7 +136,8 @@ public class BlueLagoon { // If it has been used, try the next in line if (randomIndex == 31) { randomIndex = 0; - } else randomIndex++; + } + else randomIndex++; } // If it hasn't been used, add it to the new array tempStoneCircleRandom[j] = stoneCircleRandom[randomIndex];