<commit_before>####Class AbChess

The AbChess class contructs an object to manage chess data as well as render a board.

######Syntax

```Javascript
var abChess = new AbChess(containerId, [config]);
```

######Parameters

__`containerId`__

  The id of the HTML element to contain the chess board.

__`config`__

  Optional. A configuration object containing several optional properties.

######Methods
<commit_msg>Update api_doc.md<commit_after>#### Class AbChess

The AbChess class contructs an object to manage chess data as well as render a board.

###### Syntax

```Javascript
var abChess = new AbChess(containerId, [config]);
```

###### Parameters

__`containerId`__

  The id of the HTML element to contain the chess board.

__`config`__

  Optional. A configuration object containing several optional properties.

###### Methods

- __`draw()`__

  Draw the chess board in the container element.
  
- __`fen`__

  Get or set the FEN string notation of the current position.

- __`flip()`__

  Change the orientation of the chess board.

- __`getActiveColor()`__

  Return 'w' or 'b' to indicate if it is white or black to play a move.
  
- __`getLegalSquares(start)`__

  Return an array of string representations of the legal squares from the desired start square.
  
  The `start` string should be in the format `[a-h][1-8]`.

- __`isInCheck()`__

  Check if the king of the active color is currently in check.

- __`isLegal(move)`__

  Check if a move is legal.
  
  The __`move`__ string should be in the format `[a-h][1-8]-[a-h][1-8]`.

- __`play(move)`__

  Play a move.
  
  The __`move`__ string should be in the format `[a-h][1-8]-[a-h][1-8]`.
{'fraction_non_alphanumeric': 0.1144578313253012, 'fraction_numerical': 0.006024096385542169, 'mean_word_length': 3.8425655976676385, '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': '2851503', 'n_tokens_mistral': 563, 'n_tokens_neox': 520, 'n_words': 211}