How to create a demo file:
Since typing in of all positions can be tiresome, a program
called make_demo.c can be used to reduce this work. An input file for make_demo.c
contains:
demofile_name and comment_field in the first line.Then, the file contains
player and ball positions after discrete time-steps.So we could say,
0 0 1 1 2 2 3 3 4 4 5 5 6 6 2 1 1 2 2 3 3 4 4 5 5 6 6 7 7...
The first seven pairs of values represent player and ball posns., and the
underlined "2" says that after 2 time-steps, the posns are 1
1 2 2 3 3 ...
The input file closes with the value -1 as the time-step.