To compile chess with a different (and perhaps more interesting) user interface, substitute pio.c for io,c in mkfile.