NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace ConsoleApplication3
{
class Program
{
private static int choose = 0, para = 250, ruletnumber, bahis, correct = 0, wonmoney, xd = 0, k = 0, s = 0;
private static string wheelchoice = "yesil", cikan;

private static void mainmenu()
{
ConsoleKeyInfo c;
Console.WindowHeight = 35;
Console.WindowWidth = 60;
do
{
Console.CursorVisible = false;
Console.Clear();
Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("nnn tt x K U M A R x nnnn @ : Berke Kemal BOYLU");
Console.WriteLine("nn-------------------"); Console.ForegroundColor = ConsoleColor.DarkMagenta;
Console.WriteLine(" Oynamak için 'P' n Çıkmak için 'C'"); Console.ForegroundColor = ConsoleColor.Black;
Console.Write("nnn Choose... n >");
do
{
c = Console.ReadKey();
} while (c.Key == ConsoleKey.Enter);

if (c.Key == ConsoleKey.C) { Environment.Exit(1); }
else if (c.Key == ConsoleKey.P) { choose = 1; }
} while (choose == 0);
choose = 0;
}

private static Random wheelnumber = new Random();

private static void animasyon()
{
Console.BackgroundColor = ConsoleColor.White;

Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine("nn#######################");
Console.Write("# ▼ #n");
Console.Write("# #n");
Console.Write("# #n");
Console.Write("#######################");
Console.SetCursorPosition(2,6);
Console.CursorVisible = false;


for (int i = 0; i < 8; i+=0)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.Write("█");
System.Threading.Thread.Sleep(200);
i++;

Console.ForegroundColor = ConsoleColor.Black;
Console.Write("█");
System.Threading.Thread.Sleep(200);
i++;
}
if (cikan == "yesil" )
{
Console.ForegroundColor = ConsoleColor.Green;
Console.Write("█");
System.Threading.Thread.Sleep(200);

}
else if (cikan == "kirmizi")
{
Console.ForegroundColor = ConsoleColor.Red;
Console.Write("█");
System.Threading.Thread.Sleep(200);
k=1;
}
else if (cikan == "siyah")
{
Console.ForegroundColor = ConsoleColor.Black;
Console.Write("█");
System.Threading.Thread.Sleep(200);
s=1;
}

for (int i = 0; i < 8; i+=0)
{
if (k == 1) { k--; }
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.Write("█");
System.Threading.Thread.Sleep(200);
i++;
}
if (s == 1) { s--; }
else
{

Console.ForegroundColor = ConsoleColor.Black;
Console.Write("█");
System.Threading.Thread.Sleep(200);
i++;
}
}
}



private static void neciktilan()
{
ruletnumber = wheelnumber.Next(0, 33);
switch (ruletnumber)
{
case 1:
case 3:
case 5:
case 7:
case 9:
case 11:
case 13:
case 15:
case 17:
case 19:
case 21:
case 23:
case 25:
case 27:
case 29:
case 31:
cikan = "kirmizi"; break;
case 16: cikan = "yesil"; break;
default: cikan = "siyah"; break;
}
}


private static void wheel()
{
ConsoleKeyInfo c;
returned:
do
{
Console.Clear();
Console.CursorVisible = true;
Console.WriteLine("Renk Seç : n"); Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("█ K I R M I Z I 'k' x2n"); Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine("█ S I Y A H 's' x2n"); Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine("█ Y E S I L 'y' x16n"); Console.ForegroundColor = ConsoleColor.Black;
Console.SetCursorPosition(0, 15);
Console.Write(" >");
wheelchoice = Console.ReadLine().ToLower();
switch (wheelchoice)
{
case "k": choose++; break;
case "s": choose++; break;
case "y": choose++; break;
default: break;
}
} while (choose == 0);
choose = 0;
do
{
Console.Clear();
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine(" Para {0}$", para); Console.ForegroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.Black;
Console.Write(" Bahis Gir: ");
bahis = int.Parse(Console.ReadLine());
if (bahis > para) { Console.WriteLine("nn << Yeterli bakiye yok. >>"); System.Threading.Thread.Sleep(1500); }
else if (bahis <= 0) { Console.WriteLine("nn << Negatif bakiye girilmez. >>"); System.Threading.Thread.Sleep(1500); }
else { choose = 1; }
} while (choose == 0);
choose = 0;

neciktilan();
if (cikan == wheelchoice) { correct++; }
else
{
switch (cikan)
{
case "kirmizi": Console.ForegroundColor = ConsoleColor.Red; break;
case "yesil": Console.ForegroundColor = ConsoleColor.Green; break;
case "siyah": Console.ForegroundColor = ConsoleColor.Black; break;
}
animasyon();
Console.SetCursorPosition(2,4);
Console.WriteLine("nn << -{0} kaybedildi.", bahis);
para -= bahis;
System.Threading.Thread.Sleep(1500);
Console.WriteLine("nn Devam etmek için 'R' n Çıkmak için 'C'");
Console.ForegroundColor = ConsoleColor.Black;
Console.Write("nnn Choose... n >"); c = Console.ReadKey();
if (c.Key == ConsoleKey.R) { goto returned; }
else if (c.Key == ConsoleKey.C) { Environment.Exit(1); }
}
if (correct == 1)
{
correct--;
animasyon();
switch (cikan)
{
case "kirmizi": wonmoney = bahis * 2; break;
case "siyah": wonmoney = bahis * 2; break;
case "yesil": wonmoney = bahis * 16; break;
}
}
Console.SetCursorPosition(2, 4);
Console.WriteLine("nn << {0} kazanıldı.", wonmoney);
para += wonmoney;

Console.WriteLine("nn Devam etmek için 'R' n Çıkmak için 'C'");
Console.ForegroundColor = ConsoleColor.Black;
Console.Write("nnn Choose... n >"); c = Console.ReadKey();
if (c.Key == ConsoleKey.R) { goto returned; }
else if (c.Key == ConsoleKey.C) { Environment.Exit(1); }
Console.ReadLine();
}





static void Main(string[] args)
{
Console.BackgroundColor = ConsoleColor.White;
mainmenu();
Console.Clear();
wheel();
Console.ReadLine();
}
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.