r/KoolPiss • • Apr 16 '16

I made the "guess the number" game in C#.

2 Upvotes

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();
    		}
    	}
    }

Have a download!

Are you proud of me?


r/KoolPiss • • Apr 10 '16

Koolpiss IRC channel.

3 Upvotes

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 Snoonet.

Information on the bots Snoonet offers, which the #koolpiss channel uses.

AdiIRC, an IRC client.


r/KoolPiss • • Apr 06 '16

Flairs still don't work.

1 Upvotes

You guys figure it out.


r/KoolPiss • • Apr 06 '16

Flairs.

1 Upvotes

I am trying to hard to get an image to upload so that you guys will have some damn flairs.


r/KoolPiss • • Apr 06 '16

Alternatives to Robin.

3 Upvotes

Now that Robin is over, what could be good alternatives?


r/KoolPiss • • Apr 02 '16

I'm a moderator now.

1 Upvotes

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 • • Apr 02 '16

KoolPissers represent in mega room (4,401)

2 Upvotes

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.

room

leaderboard


r/KoolPiss • • Apr 02 '16

Any KoolPissers still going on this same run? Currently third largest room.

Post image
2 Upvotes

r/KoolPiss • • Apr 01 '16

I AM YOUR GOD NOW. OBEY.

2 Upvotes

r/KoolPiss • • Apr 01 '16

The first Google Images result for "Kool Piss"

Post image
3 Upvotes

r/KoolPiss • • Apr 01 '16

Oh Yeah!

Thumbnail
vignette1.wikia.nocookie.net
1 Upvotes