TTT v0.2.0 TTT.Utilities.TokenPaddingGenerator View Source

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

Link to this section Summary

Link to this section Functions

Link to this function add_paddings(longer_token, players) View Source

## Parameters

- longest_token: String of the longer token.
- players: Tuple of player structs which contains player's name, token and type.

Returns a tupe of players with paddings added to the shorter token.

Link to this function generate_paddings(long_token, short_token) View Source

## Parameters

-long_token: String of the longer token.
-short_token: String of the shorter token.

Returns a tupe of players with paddings added to the shortest token.