started with the TicTacToe_MinMax Project. Finished the rendering of the game.

TODO: Make a playable version and add MinMax
This commit is contained in:
2020-06-14 23:13:33 +02:00
parent c1ebe11e2f
commit 99d9170365
145 changed files with 8952 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
package reader;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
public class ReaderRakete {
private String path;
private int[] fluege;
private int entrys;
public ReaderRakete(String PATH) {
this.path = PATH;
fluege = new int [3];
}
public int read() {
File file = new File(path);
BufferedReader br;
try {
br = new BufferedReader(new FileReader(file));
String st;
while ((st = br.readLine()) != null) {
if(st != "") {
fluege[entrys] = Integer.parseInt(st);
System.out.println(fluege[entrys]);
entrys++;
}
}
}
catch (IOException e) {
e.printStackTrace();
}
return entrys;
}
public static void main(String[] args) throws Exception {
ReaderRakete r = new ReaderRakete("F:/JavaCode/RaketeGame/src/RaketeGame/res/highscores.txt");
r.read();
}
}