Package corners_core

Examples of corners_core.GameField


    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());
    }
View Full Code Here

TOP

Related Classes of corners_core.GameField

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.