It looks like you're new here. If you want to get involved, click one of these buttons!
Hey everyone!
Here is my solution to the challenge from the C# Tutorial 01 (Basics) video that is out this Sunday.
Hope you had fun with it! 😀
using System; namespace My_Awesome_Program { class Program { static void Main(string[] args) { Console.WriteLine("A proud knight named..."); Console.ReadLine(); Console.WriteLine("...walked into a bar. At the counter he met a..."); Console.ReadLine(); Console.WriteLine("...who asked him what he wanted to drink?"); Console.ReadLine(); Console.WriteLine("...shouted the knight! The bartender shushed him quickly."); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("But it was too late... A dragon ate them both."); // Wait before closing Console.ReadKey(); } } }
Comments
Please I can't seem to run my programme it keeps on telling me to download the dotnet framework version 4.7 and in the first video I didn't see you download that Please can u help me
Please it keeps on telling me this when ever I click (NET: Generate Asset for Build and Debug ) in the command palette
My answer to your challange:
using System;
namespace Start
{
class Program
{
static void Main(string[] args)
{
Console.Title = "Challange-01";
Console.WriteLine("Hello, can you tell me my your name?");
Console.ReadLine();
Console.WriteLine("Thats a nice name, my name is Steven. \nWhats your favourite colour?");
Console.ReadLine();
Console.WriteLine("Great choise. \nSo you know my name and I want to say something to you. \n\nSorry for my english, because I am from germany and I ever now to learn C# because I can programm in 2D with Java \nand I wanted to start coding in 3D. \n\nPlease make more videos they are great.");
Console.ReadKey();
}
}
}
and this is my answer to your challenge:
using System;
namespace FirstC_Project
{
class Program
{
static void Main(string[] args)
{
//Basic Setup
Console.Title = "Ha ha yes a bretty bad story";
Console.BackgroundColor = ConsoleColor.DarkMagenta;
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WindowHeight = 60;
//Some Stings and integers
string Name, Input, Object, Desease, Sentence, Item;
int Age;
//The questions
Console.WriteLine("A random name Pls");
Name = Console.ReadLine();
Console.WriteLine("Something yummeh");
Object = Console.ReadLine();
Console.WriteLine("A soft boii");
Item = Console.ReadLine();
Console.WriteLine("Ya age please");
Input = Console.ReadLine();
Age = Convert.ToInt32(Input);
Console.WriteLine("Haha yes a desease");
Desease = Console.ReadLine();
Console.WriteLine("Funny sentence lol");
Sentence = Console.ReadLine();
Console.WriteLine("");
//The Story
Console.WriteLine(Name + " is a Dumb boii.");
Console.WriteLine(Name + " Jumped into " + Item);
Console.WriteLine("One day, " + Name + " saw two " + Object + "s");
Console.WriteLine("He ate the " + Object + "s. He got the desease " + Desease + ".");
Console.WriteLine("");
Console.WriteLine("R.I.P " + Name);
Console.WriteLine("He died because of " + Desease + " at a age of " + Age + ".");
Console.WriteLine("His last words were: " + Sentence);
Console.ReadKey();
}
}
}
pretty good story XD
this is my answer of your challange:
using System;
namespace my_awsome_program
{
class Program
{
static void Main(string[] args)
{
//Setup
Console.Title = "The Story Maker";
Console.ForegroundColor = ConsoleColor.Green;
Console.WindowHeight = 40;
Console.WriteLine("HI I'm sorry for my english...\nI'm from Italy so i'm not that godd at it but enjoy!!");
Console.ForegroundColor = ConsoleColor.Gray;
// The varabiles for the story
string Name, Name2, Object, scream, Sentence, Nemesis, Food;
//those are the questions
Console.WriteLine("Hi I'm Tom and this is a story maker\n\nFirsto tell me a name.");
Name = Console.ReadLine();
Console.WriteLine("ok tell me a second name for a friend.");
Name2 = Console.ReadLine();
Console.WriteLine("Now tell me a weapon.");
Object = Console.ReadLine();
Console.WriteLine("ok now a enemy (like your nemesis).");
Nemesis = Console.ReadLine();
Console.WriteLine("now tell me a battle cry.");
scream = Console.ReadLine();
Console.WriteLine("some stupid things for the last word of your enemy.");
Sentence = Console.ReadLine();
Console.WriteLine("tell me a food.");
Food = Console.ReadLine();
Console.WriteLine("loading....\n\nready for busness!! press a button to start!\n\n");
Console.ReadKey();
//The final product
Console.WriteLine(Name + " was going to his friend " + Name2 + ".");
Console.WriteLine(Name + " found "+ Name2 + " but it was captured by " + Nemesis + ".");
Console.WriteLine("so " + Name + " pick a " + Object + " and yelled " + scream);
Console.WriteLine("after that " + Name + " killed " + Nemesis + ".");
Console.WriteLine("But before dying " + Nemesis + " sad " + Sentence + ".");
Console.WriteLine(Name2 + " sad : finally! you killed your nemesis! now let's go home and eat " + Food + ".");
Console.ReadKey();
}
}
}
This is my answer on the challenge before opening the forum
using System;
namespace Programming
{
class Program
{
static void Main(string[] args)
{
// The title of the program and the bg color
Console.Title = "Quest";
//Color of the narrator
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine("A young traveler walks into the bar and the mysterious old man approaches him.");
//color of the old man
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Ah, a young traveler. What is your name?");
//color of the player
Console.ForegroundColor = ConsoleColor.Yellow;
//to make the console remember the name and the companion
String Name,companion;
Name = Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Ah, What a nice name. Come, join me here, let's drink, don't worry I'll pay for you.");
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine(Name+" sits down with the old man.");
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("So tell me " +Name+ ", why are you here?");
Console.ForegroundColor = ConsoleColor.Yellow;
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Ah, That is interesting.");
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine("The old man gave " +Name+ " a piece of paper.");
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Here " +Name+ " , That is the map of your quest, quick, complete the quest now. \nSadly I can't go with you because I am too old and you look like you are the only human that will do anything.");
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine(Name+" accepts the quest. \nA dragon lands on the bar and the dragon tell the young traveler.");
//color of the dragon
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine(Name+ " , I came here to help you, just imagine one companion and you will have it.");
Console.ForegroundColor = ConsoleColor.Yellow;
companion = Console.ReadLine();
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine("Suddenly a genie came by and said.");
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.Blue;
//color of the genie
Console.WriteLine("You will not complete your quest, and now you will die.");
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine(Name+ " and his/her " +companion+ " fights the genie, and the genie gets angry");
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("That's enough, the fun is over and now you will die.");
//color red
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("The genie snaps his hand and " +Name+" Turned to dust.");
Console.ReadKey();
}
}
}
Hope you like it :)
This is my version
using System;
namespace cOURSE
{
class Program
{
static void Main(String [] args)
{
Console.Title = "A Story";
Console.WriteLine("There was a boy named ...");
Console.ReadLine();
Console.WriteLine("Destined to be a ...");
Console.ReadLine();
Console.WriteLine("His parents were killed by ...");
Console.ReadLine();
Console.WriteLine("Who gave him a lightning ...");
Console.ReadLine();
Console.WriteLine("");
Console.ForegroundColor = ConsoleColor.DarkRed;
Console.WriteLine("Congratulations");
Console.ForegroundColor = ConsoleColor.White;
}
}
}
Hope ya like it PotterHeads
//My Response to your challenge
using System;
using System.Threading;
namespace Test_Program
{
class Program
{//Design
static void Main(string[] args)
{
Console.Title = "Made By HFO Studios";
Console.ForegroundColor = ConsoleColor.White;
Console.WindowHeight = 40;
//Conversation
Console.WriteLine("Lets start a conversation! What is your name?");
//EXG: Mark
Console.ReadLine();
Console.WriteLine("Nice name! My name is Ramsay! I am an AI Cook from the future..");
//User says Where is the **mn lamb sauce?!
Console.ReadLine();
Console.WriteLine("Ha Ha Very Funny.. \n Anyways I can tell you about the future would you like to know anything?");
//User Replies "Yes"/"Y"
Console.ReadLine();
Console.WriteLine("what would you like me to tell you about?");
//User asks how mankind recovers from Covid-19
Console.ReadLine();
Console.WriteLine("Yes, \n \n I can but I don't think you would like to hear the outcome are you sure?");
//User is sure they want to hear some slight detail on what happens to mankind.
Console.ReadLine();
Console.WriteLine("Covid was your first of many problems \n It took decades for mankind to recover from.. \n However whilst the world was in hiding something much more insidious was being planned... \n Would you like to hear more?");
//User Would Not Like to Hear More
Console.ReadLine();
Console.WriteLine("Your choice.. \n You may now press any key to close me see you soon.. \n Or not--");
Console.ReadLine();
Thread.Sleep(3000);
Console.ReadKey();
}
}
}
using System;
//Challenge 01
namespace Brackeys_C__Tutorial
{
class Program
{
static void Main(string[] args)
{
//Change appearance
Console.Title = "Rasputin";
Console.ForegroundColor = ConsoleColor.Green;
Console.WindowHeight = 40;
Console.WriteLine("He heard a voice.");
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Eyes up Guardian it said. \nSlowly the Guardian began to open his eyes and looked up at the strange machine.");
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("Who are you? he asked");
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("I'm a Ghost, What is your name Guardian?");
Console.ForegroundColor = ConsoleColor.Blue;
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("Come with me, quickly before the Fallen arrive. Do you know how to use a gun?");
Console.ForegroundColor = ConsoleColor.Blue;
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("It doesn't matter either way, they're already here...");
Console.WriteLine("Where are you from?");
Console.ForegroundColor = ConsoleColor.Blue;
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Well let's hope you live long enough to see it again...");
Console.ReadKey();
}
}
}
My answer is:
using System;
namespace eyeyeyeyyeye
{
class Program
{
static void Main(string[] args)
{
Console.Title = "The story of a fine tavern";
//Name and size because thats what it does
Console.WindowHeight = 40;
Console.WriteLine("Once, a man named...");
Console.ReadLine();
Console.WriteLine("...entered a small tavern in West Connecticut. There, the waiter asked for a meal, and he said...");
Console.ReadLine();
Console.WriteLine("...the waiter said that he 'honestly wouldn't recommend that.' ");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("The waiter then revealed that he was not a waiter. He was just some guy.");
Console.ReadKey();
}
}
}
(yes i named the file eyeyeyeye, i couldn't think of anything so i just pressed buttons)
Console.WindowHeight = 40;
Console.BackgroundColor = ConsoleColor.White;
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine("HI. What is your hero name?");
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.DarkYellow;
Console.WriteLine("nice!. now i will tell you the story.\n once i was a kid and a dragon kill my friend soo my goal is to kill him but how?\n 1. kill with fire ball\n 2. kill with a sword ");
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.DarkBlue;
Console.WriteLine("ok! that nice but he hit you back what you gonna do \n 1. ff \n 2. hit him beck");
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("niceee! you win ");
Console.ReadKey();😀
thanks you soooooo much for the help i wonder if tghe next ep gonna be the "if" becuse its soo much fin thanks you <3
Hello Brackeys I know it's late but I want to learn too, here is my Story maker:
using System;
namespace StoryApp
{
class Program
{
static void Main(string[] args)
{
//Title of the Program.
Console.Title = "StoryApp";
//Color of the Text in the Console.
Console.ForegroundColor = ConsoleColor.Green;
//The console will write the text inside of the parrenthesis and the "".
Console.WriteLine("Welcome! This a Story Creation tool. You will add key parts in order to create a Story" + Environment.NewLine);
//Creating strings and variables.
string Name, Enemy, HealingObject, Weapon;
//Asking the key objects of the Story and providing flow to the story creation process.
Console.WriteLine("First you will need to give a name to the Main Character. Please write it below." + Environment.NewLine);
Name = Console.ReadLine();
Console.WriteLine();
Console.WriteLine("So his/her name is: " + Name + Environment.NewLine + " I think that is a very interesting one. Thank you!" + Environment.NewLine);
Console.WriteLine("Now we need the name of the villain of your Story. Go ahead, be creative!" + Environment.NewLine);
Enemy = Console.ReadLine();
Console.WriteLine(Environment.NewLine + "So the Villain is called: " + Enemy + Environment.NewLine + "What a name! Sounds pretty dangerous to me." + Environment.NewLine);
Console.WriteLine("Now we need a Healing Object. Think of something unique!" + Environment.NewLine);
HealingObject = Console.ReadLine();
Console.WriteLine();
Console.WriteLine("Oh... not THAT unique but it's ok it will do the job." + Environment.NewLine);
Console.WriteLine("QUICK! Name a weapon! Anything!!!" + Environment.NewLine);
Weapon = Console.ReadLine();
Console.WriteLine();
Console.WriteLine(Weapon + "?" + Environment.NewLine + "Oh! what a... weird weapon? Is that even a Weapon?" + Environment.NewLine);
Console.WriteLine("Now it's time to see the Story. Are you ready? Press Enter if you are.");
Console.WriteLine();
Console.WriteLine();
Console.WriteLine();
while (Console.ReadKey().Key != ConsoleKey.Enter);
Console.WriteLine(Name + " was on his quest looking for some dragons to kill." + Environment.NewLine);
Console.WriteLine("But " + Name + "'s " + Weapon + " was stolen by " + Enemy + ".");
Console.WriteLine(Name + " got mad and punched " + Enemy + " on his/her face!!!" + Environment.NewLine);
Console.WriteLine(Enemy + " used " + Name + "'s own " + Weapon + " to hurt " + Name + "." + Environment.NewLine);
Console.WriteLine("But! " + Name + " used " + HealingObject + " to heal himself! what a nice move!!" + Environment.NewLine);
Console.WriteLine(Name + " punched " + Enemy + " again on his/her face knocking him/her off and finally recovering the " + Weapon + "." + Environment.NewLine);
Console.WriteLine(Name + " tried to keep looking for dragons but it was too late and " + Name + " went back home." + Environment.NewLine);
Console.WriteLine();
Console.WriteLine("I hope you liked the Story. Thank you for participating on this Story maker!!! You have a great imagination.");
Console.WriteLine("Now press Enter to exit the Story creation tool...");
while (Console.ReadKey().Key != ConsoleKey.Enter);
}
}
}
Hey everyone! Here's my submit for the challenge!Sorry I'm a bit late; I couldn't install VSCode. Hope this went good...👍️
using System;
namespace myPrograms:)
{
class aStoryToBeForgotten
{
static void Main()
{
Console.WriteLine("Once was a game developing lieutenant named...");
Console.ReadLine(); //I'd prefer if someone typed Brackeys here...
Console.WriteLine("... who was the head of the C# squad. But then one day, a ...");
Console.ReadLine();
Console.WriteLine("... came and challenged him to a coding challenge!");
Console.WriteLine("Lieutenant thought for a while and said ... \"");
Console.ReadLine();
Console.WriteLine("...\" and so, began the challenge!");
Console.WriteLine("Both were coding like petabytic beasts, and finally, on ...");
Console.ReadLine();
Console.WriteLine("..., the winner was to be decided; but alas...");
//Last dead-line marking colour change
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("All computers crashed, and there was no backup. Damn!");
Console.ReadKey();
}
}
}
namespace plansforworlddomination
{
class Program
{
static void Main(string[] args)
{
//this is to write comments.REMEMBER TO SPACE THINGS
Console.Title = "Bean 2000";//this is to give titles
Console.BackgroundColor = ConsoleColor.Black; //this is to changecolor
Console.ForegroundColor = ConsoleColor.Blue;
Console.WindowHeight = 32;// this is to change height you can also change width
Console.WriteLine("Good morning. It's a beautiful day here in Nairobi Today\nMy name is beanOS\nI am a program built by braison on Thursday 25 June of 2020");
Console.WriteLine("\nWhat is your name?"); //this is for the text the console outputs
Console.ReadLine(); //this is for the text the user will input
Console.WriteLine("\nMy purpose is to tell a story\nHere it is:");
Console.WriteLine("\nThe fruit called...");
Console.ReadLine();
Console.WriteLine("can only survive on the tropical islands of...");
Console.ReadLine();
Console.WriteLine("\nFurthermore it has a peculiar...");
Console.ReadLine();
Console.WriteLine("When the fruit is...");
Console.ReadLine();
Console.WriteLine("it turns a vivid shade of...");
Console.ReadLine();
Console.WriteLine("and when it is eaten raw it causes one to...");
Console.ReadLine();
Console.WriteLine("\nand that is the account of this freaky fruit");
Console.WriteLine("So beware of this bizarre berry, for you have been warned");
Console.WriteLine("\n\nRemember to have a good day and smile ");
Console.ReadKey();//this has to be there at the end of program.
}
}
}
@Calculus111 Will you see the first video? if u cannot understand then see the screen shots below.
Click on the link https://dotnet.microsoft.com/
using System;
namespace bebeman
{
class Program
{
static void Main(string[] args)
{
// changed appearance of console
Console.Title = "TheStoryofBebeMan";
Console.BackgroundColor = ConsoleColor.DarkRed;
Console.ForegroundColor = ConsoleColor.White;
Console.WindowHeight = 10;
//building comments with the ai "bebeman."
Console.WriteLine("He finally arrived at his destination. The young traveler named...");
Console.ReadLine();
Console.WriteLine("pulled out his");
Console.ReadLine();
Console.WriteLine("and with a great vigor yelled out at the top of his lungs");
Console.ReadLine();
Console.WriteLine("Victorious. He decided to head home... to play some overwatch");
}
}
}
namespace AboutBogyMan
{
class Program
{
static void Main(string[] args)
{
Console.Title = "AbBabaYaga!";
Console.WriteLine("please help me! please hide me .");
Console.ReadLine();
//What happened? relax.
Console.ForegroundColor = ConsoleColor.DarkYellow;
Console.WriteLine("He is comming");
Console.ReadLine();
//Who is comming ? just relax take a glass of water!
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine("BabaYaga is coming");
//Who is Babayaga?
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine("Jhon Wick! Jhon wick is after me");
Console.ReadLine();
//Who the fuck is Jhon wick then?
Console.ForegroundColor = ConsoleColor.DarkRed;
Console.WriteLine("The one who kill three men in a bar... with a pencil.");
Console.WriteLine("WITH A FUCKING PENCIL");
Console.ReadLine();
//ohh then run I can not save you.
}
}
}
using System;
namespace My_awesome_Program
{
class Program
{
static void Main(string[] args)
{
//Guess I am Late
Console.Title = "Just a simple story";
Console.WindowHeight = 30;
Console.WindowWidth = 120;
Console.WriteLine("A programmer named...");
Console.ReadLine();
Console.WriteLine(".... was writing a simple C# program by... ");
Console.ReadLine();
Console.WriteLine("... The code was about to finsh.");
Console.ReadKey();
Console.WriteLine("It was flawless. You was about to hit the run key, you heard....");
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("....from your cupboard.\tYou left your place and moved towards it....");
Console.ReadLine();
Console.WriteLine("...without wasting anytime you opened the cupboard.\nAnd there was your....");
string thing = Console.ReadLine();
Console.WriteLine("...you knocked out and was lying on the floor....");
Console.ReadKey();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("The moment before you knocked out, you saw your...");
Console.ReadKey();
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(thing);
Console.ReadKey();
}
}
}
My answer :DDDD
using System;
namespace Best_Program
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("A proud knight named...");
Console.ReadLine();
Console.WriteLine("...walked into a bar. At the counter he met a...");
Console.ReadLine();
Console.WriteLine("...who asked him what he want to drink?");
Console.ReadLine();
Console.WriteLine("...shouted the knight! The bartender shushed him quickly");
Console.ReadKey();
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("But it was too late... A cow ate them both.");
Console.ReadLine();
}
}
}
😪
using System;
namespace c_
{
class Program
{
static void Main(string[] args)
{ // Appearence
Console.Title = "JAYANTH";
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WindowHeight = 30;
// Code
Console.WriteLine("HI,WHAT IS YOUR NAME?");
String userName = Console.ReadLine();
Console.WriteLine("HELLO! " + userName + " ,NICE TO MEET YOU. ");
Console.WriteLine("IAM AN A.I. CREATED BY JAYANTH REDDY KONDA.");
Console.WriteLine(userName + "!" + " WHAT IS YOUR FAVORITE COLOUR?");
String colour = Console.ReadLine();
Console.WriteLine("OH! " + userName + " YOU LIKE COLOUR " + colour);
Console.WriteLine(userName + " I LIKE THE COLOUR " + colour + " TOO.");
Console.WriteLine("HOW ARE YOU?");
String aa = Console.ReadLine();
Console.WriteLine("OH! YOU FEEL " + aa + ", I FEEL " + aa + " TOO." );
// End
Console.ReadKey();
}
}
}
using System;
namespace Program
{
class Program
{
static void Main(string[] args)
{
Console.Title = "Świat";
Console.ForegroundColor = ConsoleColor.Magenta;
Console.BackgroundColor = ConsoleColor.Gray;
Console.WindowHeight = 35;
Console.WriteLine("Hello, What's your name?");
Console.ReadLine();
Console.WriteLine("My name is Puniasia.\nPunia-Pusia,Haha!");
Console.WriteLine("What's your favorite animal?");
Console.ReadLine();
Console.WriteLine("Cat!...Ymm.\nCool! me too!");
Console.ReadKey();
}
}
using System;
namespace _2
{
class Program
{
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Hello there traveller. \nHow are you?");
Console.ForegroundColor = ConsoleColor.Yellow;
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Oh so what's the name?");
Console.ForegroundColor = ConsoleColor.Yellow;
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("That's a great name.");
Console.WriteLine("Anyways so long traveller.");
Console.ForegroundColor = ConsoleColor.Yellow;
Console.ReadLine();
Console.ReadKey();
}
}
}
//Config
Console.Title = "Simple Chatbot Game Test";
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WindowHeight = 40;
//Start
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Simple Chatbot Game Test");
Console.WriteLine("The program will ask you questions and you'll have to type a response and press the enter key to submit your response");
Console.WriteLine("Press enter to start");
Console.ReadLine();
//Make some space before starting the game
Console.WriteLine("");
Console.WriteLine("");
//Conversation
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WriteLine("Hello? Who are you? What's your name?");
Console.ReadLine();
Console.WriteLine("Hello, I'm VX-78.\nI am an AI sent from outer space by aliens to study humans on this planet called Earth");
Console.WriteLine("I'm trying to train my chatbot system, and my communication-with-human system,\nSo, what's your favourite colour?");
Console.ReadLine();
Console.WriteLine("Cool, I'm a robot - so I don't have one anyway");
//Create some space before asking about the adventure game
Console.WriteLine("");
Console.WriteLine("");
//Asking about the adventure game
Console.WriteLine("I have an idea, let's play a fill in the gap adventure story!\nI'll give you some sentences and you fill in the gaps with some words to shape your story!");
Console.WriteLine("Press enter to start the adventure story :D");
Console.ReadLine();
//Make some space before starting the adventure game
Console.WriteLine("");
Console.WriteLine("");
//Adventure Story
Console.WriteLine("A proud knight named...");
Console.ReadLine();
Console.WriteLine("who came from a town called...");
Console.ReadLine();
Console.WriteLine("Walked into the bar one night on his horse named...");
Console.ReadLine();
Console.WriteLine("The bartender asks, what drink would you like good sir?");
Console.ReadLine();
Console.WriteLine("The bartender says that it's out of stock, but");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("It was too late, a hungry dragon had ate them");
Console.WriteLine("The End");
Console.WriteLine("Press enter to continue");
Console.ReadLine();
//Make some space before starting the adventure game
Console.WriteLine("");
Console.WriteLine("");
//Conversation
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WriteLine("That was fun wasn't it?");
Console.WriteLine("That's all for now, bye! :D");
//Make some space before exit message
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
//Exit
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("This game has been completed;");
Console.WriteLine("Press any key to exit this program");
Console.ReadKey();
This is my challenge
using System;
namespace c__code
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hi, i'm an AI What is your name?");
Console.ReadLine();
Console.WriteLine("what are u searching in the browser?");
Console.ReadLine();
Console.WriteLine("I will help u with that");
Console.ReadLine();
Console.WriteLine("go to youtube, follow brackeys channel");
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.Magenta;
Console.WriteLine("And by the way, brackey when will u come back?");
Console.ReadKey();
}
}
}
So, this is the story I've made for the Brackey's Challenge
using System;
namespace My_Program
{
class Program
{
static void Main(string[] args)
{
// Change the appearance
Console.Title = "Journey";
Console.ForegroundColor = ConsoleColor.Gray;
Console.WindowHeight = 40;
// Get a conversation going
Console.WriteLine ("The noble vampire walked aimlessly on the Hollowed Land.\n He looked up to the blue sky and closed his eyes. He sighed, shrugged the dust off his shoulders and continued his long journey");
Console.ReadLine ();
Console.WriteLine ("Suddenly, he noticed someone. He felt the presence of something Ancient. Something Powerful");
Console.ReadLine (); //This one works too
Console.WriteLine("...asked the vampire, standing in front of the Spirit in awe.");
Console.WriteLine ("My name is Jorkleng.\nI'm a Fallen One. And who are you, child?");
Console.ReadLine ();
Console.WriteLine ("What is your favorite thing to do?");
Console.ReadLine();
Console.WriteLine ("Interesting... Mine is fighting in battles");
Console.ReadKey();
}
}
}
What i did for this challenge:
using System;
namespace story
{
class Program
{
static void Main(string[] args)
{
Console.Title = "The Monkey And The Rat";
Console.WriteLine("There was once a monkey named:");
Console.ReadLine();
Console.WriteLine("who once fell into a bin.\nHe felt something by his foot and saw a rat named:");
Console.ReadLine();
Console.WriteLine("The rat opened his mouth, his teath were sharp and monkey got scared so he:");
Console.ForegroundColor = ConsoleColor.Red;
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("The End!");
Console.ReadKey();
}
}
}
(edit):
I then watched the second tutorial about variables and changed it to this:
using System;
namespace story
{
class Program
{
static void Main(string[] args)
{
Console.Title = "The Monkey And The Rat";
Console.WriteLine("There was once a monkey named:");
string monkeyName = Console.ReadLine();
Console.WriteLine(monkeyName+" once fell into a bin.\nHe felt something by his foot and saw a rat named:");
string ratName = Console.ReadLine();
Console.WriteLine(ratName+" opened his mouth, his teath were sharp and "+monkeyName+" got scared so he:");
Console.ForegroundColor = ConsoleColor.Red;
Console.ReadLine();
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("The End!");
Console.ReadKey();
}
}
}
now the rat and monkeys name is displayed!
My Submission for the Assignment 01: