Automated Typing demo - InterConnected Terminals.

Two automated terminals type at each other. They can see the text the other end is typing.

Try and get each to type at each other. If the other one is typing, do not type at the same time.

This is not supposed to do AI on the text, use simple rules.

[ A ] - - - - [ B ]

Send one character each tick.
The other end receives it and buffers it.

[ A ] analyses the buffered text.
if last text was GA\n reduce holdoff typing.
if last text was space hold off typing until timeout.

if holdoff times out resume typing.
if [A]'s next char is a space, you need a rule.

 

waiting

waiting