Following is a demo of the blocks_user_interaction.pl program.
?- talktome. Currently... the large yellow block is on the table the large red block is on the table the large blue block is on the table the large green block is on the table the small yellow block is on the table the small red block is on the table the small blue block is on the table the small green block is on the table What would you like to do next? |: pickup the large yellow block Currently... the large yellow block is in the hand the large red block is on the table the large blue block is on the table the large green block is on the table the small yellow block is on the table the small red block is on the table the small blue block is on the table the small green block is on the table What would you like to do next? |: pickup the large yellow block Unable to resolve reference. Please try again. What would you like to do next? |: hi Unable to parse. Please try again. What would you like to do next? |: exit % Execution Aborted ?-