Description
Introduction to Operating Systems
1 Introduction
The objective of this assignment is to learn the basics of IPC (inter-process communication) through the implementation of a game similar to the Rogue1. The Rogue game was released in 1980 and was popular in Unix-based mainframe systems. The game is built on a randomly generated map, consisting of multiple layers with each layer being composed of rooms inter-connected via doors. The rooms may contain monsters and/or rewards, and the objective of the game is to retrieve a treasure at the bottom layer. In the original version of the game, the graphics were text-based with all entities (player/monster/reward/door etc. ) being repre-sented with different ASCII characters, such as ’@’ and ’+’ denoting the player and the door respectively. In this assignment, you will be implementing a simplified version of the game. Unlike Rogue, however, there will be only one room containing the player and an arbitrary number of monsters. The objective of the game is to survive by either leaving the room without dying, or killing every monster in the room. No treasure/reward is included. The game continues until either the player dies, leaves the room or kills all the monsters in the room.
2 Components and Communication
The system consists of three types of components: game world,player and monsters, all running as separate processes.
Player
Monster
….
Monster
Game World
Monster
….
Monster
‘https://en.wikipedia.org/wiki/Rogue_%28video_game%29
1


