Implemented missing librarys
parent
24f6339b06
commit
f3079dc82e
|
@ -1,5 +1,8 @@
|
||||||
package de.hs_mannheim.informatik.chess.model;
|
package de.hs_mannheim.informatik.chess.model;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.nio.charset.StandardCharsets;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
import java.nio.file.Path;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.logging.ConsoleHandler;
|
import java.util.logging.ConsoleHandler;
|
||||||
|
@ -271,11 +274,11 @@ public class ChessEngine {
|
||||||
|
|
||||||
String file = header.toString() + sb.toString();
|
String file = header.toString() + sb.toString();
|
||||||
|
|
||||||
// try {
|
try {
|
||||||
// Files.writeString(Path.of(path, dateiname), file, StandardCharsets.UTF_8);
|
Files.writeString(Path.of(path, dateiname), file, StandardCharsets.UTF_8);
|
||||||
// } catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// e.printStackTrace();
|
e.printStackTrace();
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void loadMoves(List<Move> moveList) {
|
public void loadMoves(List<Move> moveList) {
|
||||||
|
|
Loading…
Reference in New Issue