A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[C#] Number game (My little brother coded it)

1.2k views · started by Bman ·
#1
[C#] Number game (My little brother coded it)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Number_Game
{
class Program
{
static void Main(string[] args)
{
String Frst,Second,Guess;
int First,Secnd,gyuss,outtie;
Random rndi = new Random();
Console.WriteLine("welcome to the number guessing game.");
Frst = Console.ReadLine();
Second = Console.ReadLine();
Secnd = int.Parse(Second);
First = int.Parse(Frst);
outtie = rndi.Next(First, Secnd);
Console.WriteLine("Please guess a number : ");
Guess = Console.ReadLine();
gyuss = int.Parse(Guess);
if (outtie == gyuss)
{
Console.WriteLine("You win! ;D");
Console.ReadKey();
}
else
{
Console.WriteLine("Fail");
Console.ReadKey();
}
}
}
}
#2
Java? Gross. :P Good structure though.
#3
Its C# xD

thats what it says in the title, and thats what it is ;)
#4
I know its C#. But if you ever programmed in Java, you know that the two are extremely similar. I happen to hate Java with a passion. So anything that resembles it is automatically gross in my book.
#5
defkult wrote:
I know its C#. But if you ever programmed in Java, you know that the two are extremely similar. I happen to hate Java with a passion. So anything that resembles it is automatically gross in my book.


So your saying you hate, C#, PHP, Java, and Javascript?
#6
Maybe not all as much as Java. But I never liked web coding that much. So don't take my blind ignorant hate personal.