Skip to content

Latest commit

 

History

History
183 lines (147 loc) · 5 KB

README.md

File metadata and controls

183 lines (147 loc) · 5 KB

TEXT BASED ADVENTURE GAMES WITH PROLOG

Table of Contents
  1. About The Project
  2. Getting Started
  3. The Game Instructions
  4. License
  5. Links

About The Project

Product Name Screen Shot 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

Built With

Purpose

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

Getting Started

Prerequisites

Installation

  1. Clone the repo

    git clone https://github.com/bennaaym/adventure-game-prolog.git
  2. Open and compile KnowledgeBase.pl using SWI-Prolog

  3. Check the game instructions below

Instructions

Starting The Game

   start 

Checking The Inventory

  •  check inventory  
  •  inventory  

Exploring The Surroundings

  •  look around  
  •  look  
  •  observe  

Entering Close Places

  •  enter [name of the place] for example enter water hole
    
  •  go into [name of the place] for example go into water hole  
    

Exiting Close Places

  •  exit
    
  •  go out 
    

Moving Around Places

  •  move [direction] for example move north
    
  •  go [direction] for example go north 
    
  •  [direction] for example north
    

Picking Objects

  •  pick all
    
  •  pick [name of the object] for example pick egyptian sword
    

Droping Objects

  •  drop [name of the object]
    
  •  pick [name of the object] for example drop egyptian sword
    

Talking to Characters

  •  talk to [character's name] for example talk to wise man
    
  •  ask [character's name] for example ask mage
    

Giving Objects

  •  give [character's name] [object_1] and [object_2] and ... and [object_n] for example give mage flower of life and phoenix egg
    

License

MIT License
Distributed under the MIT License. See LICENSE for more information.

Links