Skip to content

Commit

Permalink
Extract variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yadavvi91 authored and vishal-yadav-zemoso committed Sep 9, 2023
1 parent 825271d commit 44ff6fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/yadavvi/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ public static void main(String[] args) {
InputStream in = System.in;
PrintStream out = System.out;

String word = new Dictionary().selectWord();
Dictionary dictionary = new Dictionary();
UI ui = new UI();

String word = dictionary.selectWord();
String matched = word;
String lettersUsed = "";
String guesses = repeat("_ ", word.length());
Expand Down

0 comments on commit 44ff6fb

Please sign in to comment.