<commit_before>var Player = require("./player.js");
var Checkers = require("./checkers/checker_game.js");
var CheckerBoard = require("./checkers/checker_board.js");
var ManualTurn = require("./manualTurn.js");
var View = require("./view.js");


var redPlayer = new Player({name: "Red"});
var whitePlayer = new Player({name: "White"});
var players = [redPlayer, whitePlayer];

var board = new CheckerBoard();
var checkers = new Checkers(players, board);
var turnMap = new ManualTurn(checkers);
checkers.setTurnMap(turnMap);

var view = new View(checkers, turnMap);

view.drawBoard();
checkers.updateState("start");
<commit_msg>comments<commit_after>// Import necessary modules
var Player = require("./player.js"); 
var Checkers = require("./checkers/checker_game.js");
var CheckerBoard = require("./checkers/checker_board.js");
var ManualTurn = require("./manualTurn.js");
var View = require("./view.js");

// create the players
var redPlayer = new Player({name: "Red"});
var whitePlayer = new Player({name: "White"});
var players = [redPlayer, whitePlayer];

// create the Board, Game, and TurnMap
var board = new CheckerBoard();
var checkers = new Checkers(players, board);
var turnMap = new ManualTurn(checkers);
checkers.setTurnMap(turnMap);


// create our view, and draw it
var view = new View(checkers, turnMap);
view.drawBoard();

// this initiates the TurnMap ("Gameloop") and 
// gets the ball rolling!
checkers.updateState("start");

{'fraction_non_alphanumeric': 0.15939015939015938, 'fraction_numerical': 0.0, 'mean_word_length': 5.475336322869955, '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': '4775243', 'n_tokens_mistral': 457, 'n_tokens_neox': 443, 'n_words': 129}