Before computers could even display images at all, people made games out of words alone. This genre of game (refered to as Interactive Fiction or IF or parser fiction) became incredibly influential for how videogames developed, and people still write IF today.
In this assignment you will learn the basics of writing in the C# programming language while creating a small work of Interactive Fiction. The assignment will require two parts:
Play Zork for 30 minutes or more. You can play it here. Remember, the way it works is to type in a command, and see if the program responds. The main “verbs” or commands that are supported in Zork are:
go [north | south | east | west]
take [item]
examine [item]
look
Write a short reflection about what it was like to play Zork, and include it as a block comment at the top of you dotfiddle code project (described below).
It will look something like this:
/*
This was the first time I ever played something like this and here's what I thought about it........
*/
// and then the rest of your program.
Your Interactive Fiction game should conform to the requirements below.
Also, as creating C# projects typically requires a lot of configuration, we are avoiding that by using an online C# code editor named http://dotnetfiddle.com. You’ll need to make a free account in order to save your work.
go [north | south | east | west]
command.Turn in your game by submitting a link to your dotnetfiddle project. Remember to make it public on the top right, and then click the share button to get a sharable link to the project.
string command = Console.ReadLine();
using System.Collections.Generic;
at the top of your file.