Skip to content

Commit

Permalink
enhancement(lint): Fix lint errors for projects/wordle-gui/Word.java
Browse files Browse the repository at this point in the history
Co-authored-by: NeonGamerBot-QK <[email protected]>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
  • Loading branch information
zeon-neon[bot] and NeonGamerBot-QK authored Dec 11, 2024
1 parent db3aebc commit fabe1b1
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions projects/wordle-gui/Word.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
public class Word {

private Letter[] word = new Letter[5];

public Word() {
// fill the array word with a new letter in each slot
word[0] = new Letter();
word[1] = new Letter();
word[2] = new Letter();
word[3] = new Letter();
word[4] = new Letter();
}
private Letter[] word = new Letter[5];

public Letter[] getWord() {
return this.word;
}
public Word() {
// fill the array word with a new letter in each slot
word[0] = new Letter();
word[1] = new Letter();
word[2] = new Letter();
word[3] = new Letter();
word[4] = new Letter();
}




}
public Letter[] getWord() {
return this.word;
}
}

0 comments on commit fabe1b1

Please sign in to comment.