BIT-Studio-1 / project-23-1-orangehathackers

project-23-1-orangehathackers created by GitHub Classroom
0 stars 0 forks source link

Make dynamic error message, the old one is to basic #6

Open Krittapas2004 opened 1 year ago

Krittapas2004 commented 1 year ago

When you trying to go north, and it say “You cannot go north from here. Please try again” maybe we can add like “It have been blocking by a rock” and if you enter again. The sentence will be change to another sentence like "The north pathway has collapse. You can not cross here".

Example


string[] NorthBlocked = {
         "The north pathway have been block by some huge rock",
         "The north pathway has collapse. You can not cross here."
};
// This is were it going to select a random sentence from the array
Random rand = new Random();
int NorthBlockChoice = rand.Next(0, NorthBlocked.Length);

string selectedSentence = NorthBlocked[NorthBlockChoice];
Console.WriteLine(selectedSentence);
Morrnc1 commented 1 year ago

Please elaborate I do not understand.

Morrnc1 commented 1 year ago

This is an improvement thank you.