@slugbugblue/trax-tty
v1.1.0
Published
Simple tty graphics for displaying trax games
Downloads
4
Readme
trax-tty
This javascript module provides a simple to use interface for displaying a Trax game on a tty console (ie, from nodejs).
Usage:
import { Trax } from '@slugbugblue/trax'
import * as tty from '@slugbugblue/trax-tty'
const game = new Trax('trax', '@0/ A0+')
const players = ['first player', 'player 2']
tty.display(game, players)
See the source for more details.