Block world problem in prolog11/1/2022 ![]() ![]() Stack the large red block on the large green block.Stack the small red block on the small blue block.You’ll need to put the period in single-quotes to make Prolog happy.Ĭonsider the following sequence of events, beginning from the initial state of all of the blocks on the table. Do this by modifying the grammar so that there is a second rule for sentence (one which ends in a period). Allow the user to optionally type a period at the end of a sentence.Add an ‘exit’ command so that you can get out of the talktome rule.There are more opportunities to do nice things, but these two are some minimal expectations. If parsing fails, the system should tell the user that it doesn’t understand the input. ![]() Minimally it should do the following: if reference resolution fails, the system should tell the user what it can’t resolve.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |