Prolog in Action

  • Max Bramer
Chapter

Abstract

This chapter illustrates how Prolog can be used to develop applications of an ’Artificial Intelligence’ kind. It is shown how to implement (1) an artificial language to control the movements of an imaginary robot and (2) a shell program that can be used to construct a series of similar applications, in this case multiple-choice tests or quizzes.

After reading this chapter you should be able to:
  • Implement an artificial language of your own devising, using the techniques described elsewhere in this book. This will be illustrated by a simple language to control the movements of an imaginary robot

  • Implement a shell program, which can be used to construct a series of similar applications (the example used is a series of multiple-choice tests or quizzes). There are two phases to the implementation: the setup phase, during which the ’content’ of the application is read in from a data file and converted into facts placed in the Prolog database, and the execution phase where a dialogue with the user is automatically generated

Keywords

Data File Artificial Language Setup Phase Turn Left Full Stop 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Springer-Verlag London 2013

Authors and Affiliations

  • Max Bramer
    • 1
  1. 1.School of ComputingUniversity of PortsmouthPortsmouthUK

Personalised recommendations