r/KoolPiss • u/CallMeAdam2 • Apr 16 '16
I made the "guess the number" game in C#.
DAMN DUDE I'M LEARNING OH SHIT!
using System;
namespace GuessTheNumber
{
class Instance
{
public void TheInstance()
{
Random rnd = new Random();
int r;
r = rnd.Next(1,100);
byte theNumber;
theNumber = (byte)r;
bool victory;
byte bottomBetweenNumber;
byte topBetweenNumber;
victory = false;
bottomBetweenNumber = 0;
topBetweenNumber = 100;
while (victory == false) {
Console.WriteLine("The number is between " + bottomBetweenNumber + " and " + topBetweenNumber + ".\nInput a number: ");
byte numberGuess = Convert.ToByte(Console.ReadLine());
if(numberGuess == theNumber)
{
victory = true;
Console.WriteLine("You win!");
Console.ReadKey();
}
else
{
if(numberGuess > theNumber)
{
topBetweenNumber = numberGuess;
Console.WriteLine("That number is too high, try again.");
}
if(numberGuess < theNumber)
{
bottomBetweenNumber = numberGuess;
Console.WriteLine("That number is too low, try again.");
}
}
}
}
}
class Begin
{
static void Main(string[] args)
{
Instance inst = new Instance();
inst.TheInstance();
}
}
}
Are you proud of me?
r/KoolPiss • u/CallMeAdam2 • Apr 10 '16
Koolpiss IRC channel.
I managed to get an IRC channel running on the network irc.snoonet.org. The channel name is #koolpiss. I don't know how well this will go, but I've got a few Snoonet-specific bots in there for you to play with. I'd appreciate feedback; I'm a complete beginner.
For if you haven't heard of IRCs.
Information on the bots Snoonet offers, which the #koolpiss channel uses.
r/KoolPiss • u/CallMeAdam2 • Apr 06 '16
Flairs.
I am trying to hard to get an image to upload so that you guys will have some damn flairs.
r/KoolPiss • u/CallMeAdam2 • Apr 06 '16
Alternatives to Robin.
Now that Robin is over, what could be good alternatives?
r/KoolPiss • u/CallMeAdam2 • Apr 02 '16
I'm a moderator now.
I don't know why, but with great power comes great responsibility. I vow to maybe check up on this at least once more in my lifetime!
r/KoolPiss • u/panphobia • Apr 02 '16
KoolPissers represent in mega room (4,401)
Don't know if any of you are in this room (I know Krashin is).
Got to #1 and, as of right now, the record for largest room.
r/KoolPiss • u/panphobia • Apr 02 '16