TDMS encoder for pong