Advertisement
Guest User

OthelloCore.java

a guest
Sep 16th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. package jp.starfree.cpsv;
  2.  
  3. import javafx.application.Application;
  4. import javafx.fxml.FXMLLoader;
  5. import javafx.scene.Scene;
  6. import javafx.scene.layout.BorderPane;
  7. import javafx.stage.Stage;
  8.  
  9. public class OthelloCore extends Application {
  10.  
  11. /*
  12. * @author CreeperSaviour
  13. * @version 0.0.1
  14. */
  15.  
  16. public static void main(String[] args) {
  17. initialize();
  18. launch(args);
  19. }
  20.  
  21. @Override
  22. public void start(Stage stage) {
  23. try {
  24. var loader = new FXMLLoader(getClass().getResource("Othello.fxml"));
  25. Data.control = loader.getController();
  26. stage.setScene(new Scene((BorderPane)loader.load(), 800, 600));
  27. stage.show();
  28. stage.setTitle("Othello");
  29. } catch(Exception e) {
  30. e.printStackTrace();
  31. System.exit(-1);
  32. }
  33. }
  34.  
  35. public static void initialize() {
  36. Data.field = new OthelloField();
  37. System.out.println("[Debug]");
  38. for(var i = 0; i < 10; i++) {
  39. for(var j = 0; j < 10; j++) {
  40. System.out.print(Data.field.getSquare(i, j));
  41. }
  42. System.out.println();
  43. }
  44. System.out.println();
  45. }
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement