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