Skip to content
Snippets Groups Projects
Commit 54911b96 authored by iliya's avatar iliya
Browse files

fix: removed unused writeToCSV method

parent dd6e19d2
No related branches found
No related tags found
No related merge requests found
package hepia; package hepia;
import com.opencsv.CSVWriter;
import java.io.*; import java.io.*;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -620,16 +618,6 @@ public class GameManager implements Serializable { ...@@ -620,16 +618,6 @@ public class GameManager implements Serializable {
game.restartGame(); game.restartGame();
} }
public void writeToCSV() throws IOException {
try (CSVWriter writer = new CSVWriter(new FileWriter("gameState.csv"))) {
writer.writeNext(
new String[] { this.decks.toString(), this.humanPlayers.toString(), this.aiPlayers.toString(),
this.basicAi.toString(), this.advancedAi.toString(), this.croupier.toString(),
this.players.toString(), this.bustedPlayers.toString(), this.blackJackHands.toString(),
this.bustedHands.toString(), this.currentGame.toString(), this.game.toString() });
}
}
public void backupCurrentGame() throws IOException { public void backupCurrentGame() throws IOException {
File dir = new File("gameBackups"); File dir = new File("gameBackups");
if (!dir.exists()) { if (!dir.exists()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment