Table of Contents
This project is a basic text-based adventure game. The idea of the game was inspired by Colossal Cave Adventure.
- The player will go through an adventurous quest in search of 4 keys (key to wind, fire, earth, water). In order to find these keys, the player has to visit different places and collect different items.
- A simple natural language parser (NLP) has been implemented using Prolog to allow the player to utilize a simple subset of English.
- The player can use the map at the top to help him understand and visualize the game
This project was mainly built to achieve the following objectives
- Have a top-down understanding of the logic programming paradigm
- Become familiar with Prolog
- Have a basic understanding of how prolog is used in Computational Linguistics
-
Clone the repo
git clone https://github.com/bennaaym/adventure-game-prolog.git
-
Open and compile KnowledgeBase.pl using SWI-Prolog
-
Check the game instructions below
start
-
check inventory
-
inventory
-
look around
-
look
-
observe
-
enter [name of the place] for example enter water hole
-
go into [name of the place] for example go into water hole
-
exit
-
go out
-
move [direction] for example move north
-
go [direction] for example go north
-
[direction] for example north
-
pick all
-
pick [name of the object] for example pick egyptian sword
-
drop [name of the object]
-
pick [name of the object] for example drop egyptian sword
-
talk to [character's name] for example talk to wise man
-
ask [character's name] for example ask mage
-
give [character's name] [object_1] and [object_2] and ... and [object_n] for example give mage flower of life and phoenix egg
Distributed under the MIT License. See LICENSE
for more information.
- Project repo: https://github.com/bennaaym/adventure-game-prolog.git