Category: Design
Tic Tac Toe
Below is the code for the Tic-Tac-Toe Game: package tictactoe; import javafx.application.Application;import javafx.application.Platform;import javafx.geometry.Insets;import javafx.scene.Scene;import javafx.scene.control.Alert;import javafx.scene.control.Button;import javafx.scene.control.ButtonType;import javafx.scene.control.Label;import javafx.scene.layout.BorderPane;import javafx.scene.layout.GridPane;import javafx.scene.layout.Pane;import javafx.scene.text.Font;import javafx.scene.text.FontWeight;import javafx.stage.Stage;/** * * @author */public class TicTacToe extends Application { Pane gameboard = new Pane(); Button btnPosition[] = new Button[9]; double width = 100; double height = 100;