TTT v0.2.0 API Reference

Modules

A command line representation of a game board

A command line module that is repsonsible for outputing messages as well as receiving inputs from users

Add color to a string for display in command line

A command line game runner

This module represents the core rules of the game

The module is responsible for setting up players and putting together the essential pieces for the game to run

This module represents and controlls the flow of the game play

A player module which contains player’s name, token and type

Tags that can be used to indicate message or request types for additional processing if needed

A collection of input and output strings

Parsing player’s move inputs(integer or a string of digit) into coordinates

Performs user input validation

Apply paddings(whitespaces) to shorter token so that the visual board scales accordingly