<commit_before>import { should, expect, assert } from 'chai';
import { Location, Tile } from '../../src/server/interfaces';
import { testLayout } from '../../src/server/layouts';
import { Board } from '../../src/server/board';

describe('a game board', () => {

  const board = new Board(testLayout);
  let layout;

  it('should have a boardGetBoardState method', () => {
    board.should.have.property('boardGetBoardState');
  });

  it('should have a default layout of dimensions 5 x 5', () => {
    layout = board.boardGetBoardState().boardLayout;
    layout.should.have.length(5);
    layout[0].should.have.length(5);
  });
  
  it('should initialize with a default layout', () => {
    board.boardGetBoardState().boardLayout.should.be.a('array');
  });

  it('should have a boardCharCanMoveDirection method', () => {
    board.should.have.property('boardCharCanMoveDirection');
  });

  it('should not allow movement outside the board', () => {
    board.boardCharCanMoveDirection('up', {x:4, y:0}).should.equal(false);
    board.boardCharCanMoveDirection('right', {x:4, y:4}).should.equal(false);
    board.boardCharCanMoveDirection('down', {x:0, y:4}).should.equal(false);
    board.boardCharCanMoveDirection('left', {x:0, y:0}).should.equal(false);
  });

  it('should not allow movement into impassible tiles', () => {
    board.boardCharCanMoveDirection('up', {x:1, y:4}).should.equal(false);
    board.boardCharCanMoveDirection('right', {x:2, y:4}).should.equal(false);
    board.boardCharCanMoveDirection('down', {x:3, y:0}).should.equal(false);
    board.boardCharCanMoveDirection('left', {x:1, y:1}).should.equal(false);
  });

  it('should have a boardGetNewCharLocation method', () => {
    board.should.have.property('boardGetNewCharLocation');
  });

  it('should allow movement into passable tiles', () => {
    board.boardGetNewCharLocation('up', {x:0, y: 4}).should.have.property('x').equal(0);
    board.boardGetNewCharLocation('up', {x:0, y: 4}).should.have.property('y').equal(3);
    board.boardGetNewCharLocation('right', {x:2, y: 3}).should.have.property('x').equal(3);
    board.boardGetNewCharLocation('right', {x:2, y: 3}).should.have.property('y').equal(3);
    board.boardGetNewCharLocation('down', {x:4, y: 0}).should.have.property('x').equal(4);
    board.boardGetNewCharLocation('down', {x:4, y: 0}).should.have.property('y').equal(1);
    board.boardGetNewCharLocation('left', {x:3, y: 2}).should.have.property('x').equal(2);
    board.boardGetNewCharLocation('left', {x:3, y: 2}).should.have.property('y').equal(2);
  });

  it('should have a boardCheckForTurnInTile method', () => {
    board.should.have.property('boardCheckForTurnInTile');
  });

  it('should correctly check for a turn property for a given tile', () => {
    board.boardCheckForTurnInTile({x:0, y:4}).should.equal(false);
    board.boardCheckForTurnInTile({x:3, y:3}).should.equal(true);
  });

  it('should have a boardGetTurnInformation method', () => {
    board.should.have.property('boardGetTurnInformation');
  });

  it('should correctly return a turn property for a given tile', () => {
    console.log(board.boardGetTurnInformation({x:3, y:3}).choices[0] === 'explore');
    board.boardGetTurnInformation({x:3, y:3}).choices[0].should.equal('explore');
  });

});<commit_msg>feat (test): comment-out turn methods from tests since they are no longer used<commit_after>import { should, expect, assert } from 'chai';
import { Location, Tile } from '../../src/server/interfaces';
import { testLayout } from '../../src/server/layouts';
import { Board } from '../../src/server/board';

describe('a game board', () => {

  const board = new Board(testLayout);
  let layout;

  it('should have a boardGetBoardState method', () => {
    board.should.have.property('boardGetBoardState');
  });

  it('should have a default layout of dimensions 5 x 5', () => {
    layout = board.boardGetBoardState().boardLayout;
    layout.should.have.length(5);
    layout[0].should.have.length(5);
  });
  
  it('should initialize with a default layout', () => {
    board.boardGetBoardState().boardLayout.should.be.a('array');
  });

  it('should have a boardCharCanMoveDirection method', () => {
    board.should.have.property('boardCharCanMoveDirection');
  });

  it('should not allow movement outside the board', () => {
    board.boardCharCanMoveDirection('up', {x:4, y:0}).should.equal(false);
    board.boardCharCanMoveDirection('right', {x:4, y:4}).should.equal(false);
    board.boardCharCanMoveDirection('down', {x:0, y:4}).should.equal(false);
    board.boardCharCanMoveDirection('left', {x:0, y:0}).should.equal(false);
  });

  it('should not allow movement into impassible tiles', () => {
    board.boardCharCanMoveDirection('up', {x:1, y:4}).should.equal(false);
    board.boardCharCanMoveDirection('right', {x:2, y:4}).should.equal(false);
    board.boardCharCanMoveDirection('down', {x:3, y:0}).should.equal(false);
    board.boardCharCanMoveDirection('left', {x:1, y:1}).should.equal(false);
  });

  it('should have a boardGetNewCharLocation method', () => {
    board.should.have.property('boardGetNewCharLocation');
  });

  it('should allow movement into passable tiles', () => {
    board.boardGetNewCharLocation('up', {x:0, y: 4}).should.have.property('x').equal(0);
    board.boardGetNewCharLocation('up', {x:0, y: 4}).should.have.property('y').equal(3);
    board.boardGetNewCharLocation('right', {x:2, y: 3}).should.have.property('x').equal(3);
    board.boardGetNewCharLocation('right', {x:2, y: 3}).should.have.property('y').equal(3);
    board.boardGetNewCharLocation('down', {x:4, y: 0}).should.have.property('x').equal(4);
    board.boardGetNewCharLocation('down', {x:4, y: 0}).should.have.property('y').equal(1);
    board.boardGetNewCharLocation('left', {x:3, y: 2}).should.have.property('x').equal(2);
    board.boardGetNewCharLocation('left', {x:3, y: 2}).should.have.property('y').equal(2);
  });

  xit('should have a boardCheckForTurnInTile method', () => {
    // board.should.have.property('boardCheckForTurnInTile');
  });

  xit('should correctly check for a turn property for a given tile', () => {
    // board.boardCheckForTurnInTile({x:0, y:4}).should.equal(false);
    // board.boardCheckForTurnInTile({x:3, y:3}).should.equal(true);
  });

  xit('should have a boardGetTurnInformation method', () => {
    // board.should.have.property('boardGetTurnInformation');
  });

  xit('should correctly return a turn property for a given tile', () => {
    // board.boardGetTurnInformation({x:3, y:3}).choices[0].should.equal('explore');
  });

});
{'fraction_non_alphanumeric': 0.19687072763177882, 'fraction_numerical': 0.016253987543673097, 'mean_word_length': 4.775438596491228, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '3484154', 'n_tokens_mistral': 2167, 'n_tokens_neox': 2122, 'n_words': 379}