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,42 @@
package reader;
import java.io.*;
public class NumberReader {
private String path;
int i;
public NumberReader(String PATH) {
this.path = PATH;
}
public int read() {
File file = new File(path);
BufferedReader br;
try {
br = new BufferedReader(new FileReader(file));
String st;
while ((st = br.readLine()) != null) {
char[] chars = st.toCharArray();
st = "";
for (int i = 0; i < chars.length; i++) {
String j = "" + chars[i];
try {
st += Integer.parseInt(j);
} catch (Exception e) {
}
}
i = Integer.parseInt(st);
}
} catch (FileNotFoundException ex) {
ex.printStackTrace();
} catch (IOException ex) {
ex.printStackTrace();
}
return i;
}
}