NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io


else if (islemasker.Key == ConsoleKey.NumPad5)
{
if (para >= 250)
{
para -= 250;
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Bir silahlı asker satın aldın!");
asker++;
silahli_a += 1;
System.Threading.Thread.Sleep(500);
goto asker;
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Paran yetersiz!");
System.Threading.Thread.Sleep(500);
goto asker;
}
}
else if (islemasker.Key == ConsoleKey.NumPad6)
{
if (para >= 125)
{
para -= 125;
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("On adet yiyecek satın aldın!");
yemek += 10;
System.Threading.Thread.Sleep(500);
goto asker;
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Paran yetersiz!");
System.Threading.Thread.Sleep(500);
goto asker;
}
}
else
{
goto asker;
}
Console.ReadKey();
}

//****************************************************************************
// SONRAKİ GÜNE GEÇME KISMI
//****************************************************************************
else if (islemkey.Key == ConsoleKey.G)
{
Random gunrand = new Random();
int secenek = gunrand.Next(0, 101);
if (secenek < 11)
{
//SALDIRIYA UĞRADIN KISMI OYUN HAYDUTLAR
int ordugucu = koylu_a;
ordugucu = ordugucu + (basit_a * 4);
ordugucu = ordugucu + (okcu_a * 4);
ordugucu = ordugucu + (guclu_a * 8);
ordugucu = ordugucu + (silahli_a * 16);
//asıl kısım
Console.Clear();
int haydutsayi = gunrand.Next(9, 50);
secim_savasyadaode:
Console.Clear();
Console.ForegroundColor = ConsoleColor.DarkBlue;
Console.WriteLine(haydutsayi + " adet haydutlar tarafından saldırıya uğradın!");
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.Black;
Console.WriteLine("1) Para öde : " + haydutsayi * 2);
Console.WriteLine("2) SAVAŞ! : Düşmanın " + haydutsayi + " hazır askerine karşı " + asker + " askerin bulunuyor.");
Console.WriteLine();
Console.WriteLine("Paran: {0}", para);
Console.WriteLine("Ordu gücün: {0}", ordugucu);
int dusmanordugucu = haydutsayi * 3;
Console.WriteLine("Düşmanın ordu gücü: {0}", dusmanordugucu);
ConsoleKeyInfo savasyadaode = Console.ReadKey();
if (savasyadaode.Key == ConsoleKey.NumPad1)
{
if (para >= haydutsayi * 2)
{
para -= haydutsayi * 2;
goto oyunekran;
}
else
{
goto secim_savasyadaode;
}
}
else if (savasyadaode.Key == ConsoleKey.NumPad2)
{
Random savasmarastgele = new Random();
Console.Clear();
if (ordugucu > dusmanordugucu)
{
int kimkazanacak = savasmarastgele.Next(0, 100);
//kazandın
if (kimkazanacak > 10)
{
for (int i = 0; i < 20; i++)
{
Console.Clear();
if (i % 2 == 0)
{
Console.WriteLine("SAVAŞILIYOR!");
System.Threading.Thread.Sleep(500);
}
else
{
Console.WriteLine("SAVAŞILIYOR!!");
System.Threading.Thread.Sleep(500);
}
}
Console.Clear();
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine("Kazandın! Kazancın şu: {0}", haydutsayi * 2);
para = para + haydutsayi * 2;
System.Threading.Thread.Sleep(1500);
goto oyunekran;
}
//kaybettin
else
{
for (int i = 0; i < 20; i++)
{
Console.Clear();
if (i % 2 == 0)
{
Console.WriteLine("SAVAŞILIYOR!");
System.Threading.Thread.Sleep(500);
}
else
{
Console.WriteLine("SAVAŞILIYOR!!");
System.Threading.Thread.Sleep(500);
}
}
Console.Clear();
Console.ForegroundColor = ConsoleColor.DarkRed;
Console.WriteLine("Kaybettin! Kaybın şu: {0}", haydutsayi * 2);
if (para > haydutsayi * 3)
{
para = para - haydutsayi * 3;
}
else
{
para = 0;
koylu_a = 0;
basit_a = 0;
okcu_a = 0;
guclu_a = 0;
silahli_a = 0;
asker = 0;
}
System.Threading.Thread.Sleep(1500);
goto oyunekran;
}
}
//EĞER ORDU GUCU DUSMAN GUCUNDEN BUYUK DEĞİLSE
else
{
int kimkazanacak = savasmarastgele.Next(0, 100);
//kaybettin
if (kimkazanacak > 10)
{
for (int i = 0; i < 20; i++)
{
Console.Clear();
if (i % 2 == 0)
{
Console.WriteLine("SAVAŞILIYOR!");
System.Threading.Thread.Sleep(500);
}
else
{
Console.WriteLine("SAVAŞILIYOR!!");
System.Threading.Thread.Sleep(500);
}
}
Console.Clear();
Console.ForegroundColor = ConsoleColor.DarkRed;
Console.WriteLine("Kaybettin! Kaybın şu: {0}", haydutsayi * 2);
if (para > haydutsayi * 3)
{
para = para - haydutsayi * 3;
}
else
{
para = 0;
koylu_a = 0;
basit_a = 0;
okcu_a = 0;
guclu_a = 0;
silahli_a = 0;
asker = 0;
}
System.Threading.Thread.Sleep(1500);
goto oyunekran;
}
//kazandın
else
{
for (int i = 0; i < 20; i++)
{
Console.Clear();
if (i % 2 == 0)
{
Console.WriteLine("SAVAŞILIYOR!");
System.Threading.Thread.Sleep(500);
}
else
{
Console.WriteLine("SAVAŞILIYOR!!");
System.Threading.Thread.Sleep(500);
}
}
Console.Clear();
Console.ForegroundColor = ConsoleColor.DarkGreen;
Console.WriteLine("Kazandın! Kazancın şu: {0}", haydutsayi * 2);
para = para + haydutsayi * 2;
System.Threading.Thread.Sleep(1500);
goto oyunekran;
}
}
}
else
{
goto secim_savasyadaode;
}
Console.ReadKey();
}
else
{
if (gun >= 365)
{
gun = 0;
yil++;
goto oyunekran;
}
else
{
gun++;
goto oyunekran;

}
}
}
/////////////////////////// MEKANLAR KISMI &&&%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&%+&+%&%+&%+
//gün atlama kod sonu
else if (islemkey.Key == ConsoleKey.M)
{
mekanseckey:
Console.Clear();
Console.WriteLine("-MEKANLAR-");
Console.WriteLine();
Console.WriteLine("1)Han");
Console.WriteLine("2)Pazar");
Console.WriteLine("3)Cami");
Console.WriteLine("4)Sağlık Ocağı");
Console.WriteLine();
Console.WriteLine("Mekanları gezmek için sayıları kullan veya geri Dönmek için 'G' bas.");
ConsoleKeyInfo mekankey = Console.ReadKey();
if(mekankey.Key == ConsoleKey.NumPad1)
{
hanmekanseckey:
Console.Clear();
Console.WriteLine("-KARDEŞLER HAN-");
Console.WriteLine();
Console.WriteLine("1)Bir şeyler iç");
Console.WriteLine("2)Handan birlik al");
Console.WriteLine("3)Bir dost edin");
Console.WriteLine("4)Kavga başlat!");
Console.WriteLine("Geri Dönmek için 'G' bas.");
ConsoleKeyInfo hanmekankey = Console.ReadKey();
if (hanmekankey.Key == ConsoleKey.G)
{
goto mekanseckey;
}
else
{
goto hanmekanseckey;
}
}
else if (mekankey.Key == ConsoleKey.NumPad2)
{
Console.Clear();
}
else if (mekankey.Key == ConsoleKey.NumPad3)
{
Console.Clear();
}
else if (mekankey.Key == ConsoleKey.NumPad4)
{
Console.Clear();
}
else if (mekankey.Key == ConsoleKey.G)
{
goto oyunekran;
}
else
{
goto mekanseckey;
}
Console.ReadKey();
}
// --------------------------------- MEKANLAR SONU --------------------------------
// ------------------------------ SAVAŞ BAŞLATMA ALANI --------------------------
else if (islemkey.Key == ConsoleKey.S)
{
Console.Clear();
Random savasbaslatrastgeleasker = new Random();
int dusmansecim1 = savasbaslatrastgeleasker.Next(10,50);
int dusmansecim2 = savasbaslatrastgeleasker.Next(10, 50);
int dusmansecim3 = savasbaslatrastgeleasker.Next(10, 50);
int dusmansecim4 = savasbaslatrastgeleasker.Next(10, 50);
Console.WriteLine("Savaş başlatacaksın! Bir birlik seç ve savaşa başla!");
Console.WriteLine();
Console.WriteLine("1)Düşman birliği, {0} asker içeriyor; ",dusmansecim1);
Console.WriteLine("2)Düşman birliği, {0} asker içeriyor; ",dusmansecim2);
Console.WriteLine("3)Düşman birliği, {0} asker içeriyor; ",dusmansecim3);
Console.WriteLine("4)Düşman birliği, {0} asker içeriyor; " ,dusmansecim4);
Console.ReadKey();
}
else
{
goto oyunekran;

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