vindinium-tv

Vindinium-TV [1] is a simple Python program that will show you games being played at vindinium.org [2], in your console, in real time.

This is how it generally looks like:

=========[ 7wfrf2yo ]=========
{    ##    ########    ##    } BTBot (1430)
{  ##        ####        ##  }     72hp 1041g  6m
{    $4                $2    }
{##  ##  ##  ####  ##  ##  ##} BTBot (1430)
{##  []$1##  ####  ##$3[]  ##}     12hp 1456g  2m
{                @2          }
{  $1######$3    $3######$3  } Mini-Me (1638)
{  $1######$3  @3$3######$4  }      6hp 1047g  6m
{                    @4      }
{##@1[]$1##  ####  ##$1[]  ##} Hoprafopra (1501)
{##  ##  ##  ####  ##  ##  ##}     98hp  871g  2m
{    $1                $2    }
{  ##        ####        ##  }
{    ##    ########    ##    }
>>>>>>>>[ 1179/1200 ]>>>>>>>>=

... except the actual program is animated.

How to install it

Install Python 3 and the aiohttp library [3].

After that, obtain vindinium-tv either at [1], or directly via mercurial like this:

hg clone http://hg.tx97.net/vindinium-tv/

How to use it

Simply run the vindinium-tv script; it will show you one of the currently playing games on vindinium.org; once that game is finished, vindinium-tv will switch to the next game (this is why the program is called "TV"; it will play non-stop, as long as vindinium.org is up).

Aside from playing in the TV mode, vindinium-tv can do a few more tricks; here's it's usage with a brief explanation:

Usage: vindinium-tv [-h] [-u userid] [gameid]
Arguments:
    [gameid]    load this game for manual viewing
Options:
    -h          show this help
    -u userid   only show games with this user
Key bindings:
    'q', escape exit the program
    'H', home   rewind the game to the first frame
    'L', end    show game's last available frame
    'h', left   show previous frame
    'l', right  show next frame
    'j', pgdown jump 4 frames forward
    'k', pgup   jump 4 frames backward
    space       toggle pause
    enter       quit this game, load the next one

References

  1. http://hg.tx97.net/vindinium-tv/
  2. http://vindinium.org/
  3. https://pypi.python.org/pypi/aiohttp