Database Implemented
This commit is contained in:
+24
-2
@@ -1,6 +1,7 @@
|
||||
package main;
|
||||
|
||||
|
||||
import data.database.DataBase;
|
||||
import game.Control;
|
||||
|
||||
public class Main {
|
||||
@@ -12,8 +13,29 @@ public class Main {
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
Control control = new Control();
|
||||
control.start();
|
||||
// Control control = new Control();
|
||||
// control.start();
|
||||
DataBase dataBase = new DataBase();
|
||||
dataBase.deleteTables();
|
||||
dataBase.createTables();
|
||||
|
||||
|
||||
// boolean[][] cells = new boolean[44][66];
|
||||
//
|
||||
// for (int x = 0; x < 6; x++) {
|
||||
// for (int y = 0; y < 6; y++) {
|
||||
// cells[x][y] = false;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
// cells[3][3] = true;
|
||||
//
|
||||
// dataBase.saveGrid(cells, "whoa", 88);
|
||||
//
|
||||
// System.out.println(dataBase.getAllGrids());
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user