Following is a demo of the blocks_user_interaction.pl program.
% c:/users/kchan2/ying/college work/suny oswego/fall 2021/csc 366/challenge_3/blocks_user_interaction compiled 0.02 sec, 0 clauses ?- 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 small yellow block 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 in the hand 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 small purple block I cannot resolve purple. What would you like to do next? |: kick I do not understand this. What would you like to do next? |: exit Bye! true .