Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package jp.starfree.cpsv;
- import java.util.Scanner;
- import javafx.application.Application;
- import javafx.fxml.FXMLLoader;
- import javafx.scene.Scene;
- import javafx.scene.layout.BorderPane;
- import javafx.stage.Stage;
- public class OthelloCore extends Application {
- /*
- * @author CreeperSaviour
- * @version 0.0.1
- */
- private static Scanner sc = new Scanner(System.in);
- public static void main(String[] args) {
- initialize();
- // game();
- // sc.close();
- launch(args);
- }
- @Override
- public void start(Stage stage) {
- try {
- var loader = new FXMLLoader(getClass().getResource("Othello.fxml"));
- Data.control = loader.getController();
- stage.setScene(new Scene((BorderPane)loader.load(), 800, 600));
- stage.show();
- stage.setTitle("Othello");
- } catch(Exception e) {
- e.printStackTrace();
- System.exit(-1);
- }
- }
- public static void initialize() {
- Data.field = new Field();
- System.out.println("[Debug]");
- for(var i = 0; i < 10; i++) {
- for(var j = 0; j < 10; j++) {
- System.out.print(Data.field.getSquare(i, j));
- }
- System.out.println();
- }
- System.out.println();
- }
- public static void game() {
- while(true) {
- if(sc.nextLine().equals("f")) break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement