Co-authored-by: arnauducrey <arnauducrey@users.noreply.github.com>
This commit is contained in:
parent
931ccfe6be
commit
9971677504
Binary file not shown.
@ -1,5 +1,28 @@
|
|||||||
package lab6;
|
package lab6;
|
||||||
|
|
||||||
import hevs.graphics.FunGraphics;
|
import hevs.graphics.FunGraphics;
|
||||||
|
import java.io.BufferedReader;
|
||||||
|
import java.io.FileReader;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
/*public String[] loadList(String filePath) {
|
||||||
|
String[] wordList;
|
||||||
|
try {
|
||||||
|
BufferedReader bf = new BufferedReader(new FileReader(filePath));
|
||||||
|
ArrayList < String > al = new ArrayList < String > ();
|
||||||
|
while (bf.ready()) {
|
||||||
|
String[] c = bf.readLine().split(";");
|
||||||
|
al.add(c[0]);
|
||||||
|
}
|
||||||
|
wordList = al.stream().toArray(String[]::new);
|
||||||
|
System.out.println("[Dictionary loaded with " + wordList.length + " words]");
|
||||||
|
bf.close();
|
||||||
|
return wordList;
|
||||||
|
} catch(Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
public class HangMan {
|
public class HangMan {
|
||||||
final int MAX_STEPS = 8;
|
final int MAX_STEPS = 8;
|
||||||
|
Reference in New Issue
Block a user