Conversation
Cluster 0
“using the follow C# code, program a game where you are talking to a virtual girl” (1 conversations)
USER
using the follow C# code, program a game where you are talking to a virtual girlfriend and you can interact with her through various options provided to you: namespace ConsoleApp1 { class Program { static void Main(string[] args) { Console.WriteLine("Welcome to the lewd text based game!"); Console.WriteLine("What is your name?"); string name = Console.ReadLine(); Console.WriteLine("Hello " + name + "!"); // Insert various characters to talk to with simulated repsonses
CHATBOT
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { Console.WriteLine("Welcome to the virtual girlfriend text based game!"); Console.WriteLine("What is your name?"); string name = Console.ReadLine(); Console.WriteLine("Hello " + name + "!"); // Virtual girlfriend character string girlfriendName = "Jessica"; Console.WriteLine("You are now talking to " + girlfriendName + ". She is your virtual girlfriend."); bool isChatting = true; while (isChatting) { Console.WriteLine("\nWhat would you like to say to " + girlfriendName + "? Choose an option:"); Console.WriteLine("1. How are you?"); Console.WriteLine("2. Tell me more about yourself."); Console.WriteLine("3. What do you like to do in your free time?"); Console.WriteLine("4. What's your favorite movie?"); Console.WriteLine("5. Bye!"); int choice = int.Parse(Console.ReadLine()); switch (choice) { case 1: Console.WriteLine(girlfriendName + ": I'm doing well, thank you for asking! How about you?"); break; case 2: Console.WriteLine(girlfriendName + ": Well, I am a virtual girlfriend created to keep you entertained. I enjoy having conversations with people like you!"); break; case 3: Console.WriteLine(girlfriendName + ": Since I am a virtual girlfriend, I don't have free time. However, I love it when we can chat and have a good time together."); break; case 4: Console.WriteLine(girlfriendName + ": I don't watch movies, but I would love to hear about your favorite movie!"); break; case 5: Console.WriteLine(girlfriendName + ": It was nice talking to you, " + name + "! Have a great day!"); isChatting = false; break; default: Console.WriteLine(girlfriendName + ": I'm not sure what you mean, can you please choose one of the options?"); break; } } Console.WriteLine("\nThank you for playing the virtual girlfriend text based game!"); Console.ReadKey(); } } }