<commit_before>/*
  In this exercise, you write the logic behind a TicTacToe game.
  The interface (fucntion names) have been defined, you fill in the code.
*/

function TicTacToe() {
    // represent the tictactoe board
	this.board = [
	              [null, null, null],
	              [null, null, null],
	              [null, null, null]
	             ]
}

// updates this.board with the given move
TicTacToe.prototype.playMove = function(move) {
  // write this function to add a move to this.board
}

// returns True if a move is legal, False if not
// example move in top left corner: {x:0, y:0, player:'X'}
TicTacToe.prototype.moveIsLegal = function(move) {
  // write this function
  // hint: move.x and move.y should be between 0 and 2, and space should be unblocked  	
}
<commit_msg>comment typo and sligh tweaks<commit_after>/*
  In this exercise, you write the logic behind a TicTacToe game.
  The interface (function names) have been defined, you fill in the code.
*/

function TicTacToe() {
    // represent the tictactoe board
	this.board = [
	              [null, null, null],
	              [null, null, null],
	              [null, null, null]
	             ]
}

// updates this.board with the given move
// move is a hash with three propertoes: x, y, and player
// example move in top left corner: {x:0, y:0, player:'X'}
TicTacToe.prototype.playMove = function(move) {
  // write this function to add a move to this.board
}

// returns True if a move is legal, False if not
TicTacToe.prototype.moveIsLegal = function(move) {
  // write this function
  // hint: move.x and move.y should be between 0 and 2, and space should be unblocked  	
}

{'fraction_non_alphanumeric': 0.09939759036144578, 'fraction_numerical': 0.004819277108433735, 'mean_word_length': 2.587473002159827, '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': '1532822', 'n_tokens_mistral': 535, 'n_tokens_neox': 520, 'n_words': 207}