private CornersGame.GameMode mode;
private CornersGame.CurrentStep curStep;
private Point cellSize;
private void InitGame() {
GameField gf = new GameField(8, 8);
ArrayList<Integer> list = new ArrayList<Integer>();
list.add(3);
list.add(4);
list.add(5);
list.add(4);
list.add(7);
list.add(0);
list.add(0);
list.add(7);
mode = CornersGame.GameMode.gmHUMAN_V_AI;
curStep = CornersGame.CurrentStep.csPLAYER1;
cornersGame.StartGame(gf, new VerticalRectangleRules(list), curStep, mode, new ToPanelPrinter(drawingPanel));
cellSize = new Point(drawingPanel.getWidth() / gf.getM(), drawingPanel.getHeight() / gf.getN());
}