<commit_before>package view.Gameplay;

import controller.GameplayController;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.control.Button;
import javafx.scene.control.ListView;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import model.GameplayMessage;
import view.TableTab.TableGridView;



public class GameplayView extends BorderPane {


    private Button endTurnButton = new Button("End Turn");
    private Button sortHandButton = new Button("Sort Hand");


    private GameplayMessageView gameplayMessageView;

    public GameplayView(){
        initialize();
    }

    public void initialize(){

        /* top will be the menu bar */

        /* centre pane will be the table */
        /* need to pass in TableGrid values*/
        TableGridView table = new TableGridView();
        table.enableBackgroundImage();

        this.setCenter(table);


        /* right pane will be where text is displayed for Events and Actions */
        gameplayMessageView = new GameplayMessageView();
        this.setRight(gameplayMessageView);

        /* bottom pane will be where hand and buttons are displayed */

        HBox handAndButtons = new HBox();


        GridPane buttonsPane = new GridPane();
        buttonsPane.add(endTurnButton,2,1,2,2);
        buttonsPane.add(sortHandButton,2,3,2,2);

        /* buttons will be disabled unless condition satisified */
        endTurnButton.setDisable(true);
        sortHandButton.setDisable(true);

        handAndButtons.getChildren().addAll(buttonsPane);
        this.setBottom(handAndButtons);
    }

    public Button getEndTurnButton() {
        return endTurnButton;
    }

    public Button getSortHandButton() {
        return sortHandButton;
    }

    public GameplayMessageView getGameplayMessageView(){
        return this.gameplayMessageView;
    }
}<commit_msg>originally created MenuBar view and controller for Gameplay mode. decided it was not needed (wrt requirements). have end game button instead<commit_after>package view.Gameplay;


import javafx.scene.control.Button;

import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import view.TableTab.TableGridView;



public class GameplayView extends BorderPane {


    private Button endTurnButton = new Button("End Turn");
    private Button sortHandButton = new Button("Sort Hand");
    private Button endGameButton = new Button("End Game");

    private GameplayMessageView gameplayMessageView;

    public GameplayView(){
        initialize();
    }

    public void initialize(){


        /* centre pane will be the table */
        /* need to pass in TableGrid values*/
        TableGridView table = new TableGridView();
        table.enableBackgroundImage();

        this.setCenter(table);


        /* right pane will be where text is displayed for Events and Actions */
        gameplayMessageView = new GameplayMessageView();
        this.setRight(gameplayMessageView);

        /* bottom pane will be where hand and buttons are displayed */

        HBox handAndButtons = new HBox();


        GridPane buttonsPane = new GridPane();
        buttonsPane.add(endTurnButton,2,1,2,2);
        buttonsPane.add(sortHandButton,2,3,2,2);
        buttonsPane.add(endGameButton,2,5,2,2);

        /* buttons will be disabled unless condition satisified */
        endTurnButton.setDisable(true);
        sortHandButton.setDisable(true);

        handAndButtons.getChildren().addAll(buttonsPane);
        this.setBottom(handAndButtons);
    }

    public Button getEndTurnButton() {
        return endTurnButton;
    }

    public Button getSortHandButton() {
        return sortHandButton;
    }

    public Button getEndGameButton() {
        return endGameButton;
    }

    public GameplayMessageView getGameplayMessageView(){
        return this.gameplayMessageView;
    }
}
{'fraction_non_alphanumeric': 0.08528301886792453, 'fraction_numerical': 0.005031446540880503, 'mean_word_length': 3.12448132780083, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2135630', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1022, 'n_words': 284}