<commit_before>/**
 * game-board.js
 *
 * Maintain game board object properties
 */

// Alias our game board
var gameBoard = game.objs.board;

/**
 * Main game board factory
 *
 * @returns {object}
 */
var getGameBoard = function() {
    var gameBoard = document.getElementById('game-board');
    var width = gameBoard.width.baseVal.value;
    var height = gameBoard.height.baseVal.value;
    var border = 10;
    var area = (width - border) * (height - border);

    return {
        width: width,
        height: height,
        area: area
    }
};

// Get game board
gameBoard = getGameBoard();<commit_msg>Add boundaries to game board<commit_after>/**
 * game-board.js
 *
 * Maintain game board object properties
 */

// Alias our game board
var gameBoard = game.objs.board;

/**
 * Main game board factory
 *
 * @returns {object}
 */
var getGameBoard = function() {
    var gameBoard = document.getElementById('game-board');
    var width = gameBoard.width.baseVal.value;
    var height = gameBoard.height.baseVal.value;
    var border = 10;
    var area = (width - border) * (height - border);

    return {
        width: width,
        height: height,
        area: area,
        topBound: 0,
        rightBound: width - border,
        leftBound: 0,
        bottomBound: height - border

    }
};

// Get game board
gameBoard = getGameBoard();
{'fraction_non_alphanumeric': 0.1228719467061436, 'fraction_numerical': 0.0044411547002220575, 'mean_word_length': 2.557894736842105, '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': '7471992', 'n_tokens_mistral': 416, 'n_tokens_neox': 406, 'n_words': 119}