Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
// int avci1, avci2, cakal, kurt, domuz, ayi;
int avci1Atak, avci1Zirh, avci1Hasar, avci1Can;
// int avci2Atak, avci2Zirh, avci2Hasar, avci2Can;
// int cakalAtak, cakalZirh, cakalHasar, cakalCan;
// int kurtAtak, kurtZirh, kurtHasar, kurtCan;
int domuzAtak, domuzZirh, domuzHasar, domuzCan;
// int ayiAtak, ayiZirh, ayiHasar, ayiCan;
Random rnd = new Random();
// avci2Atak = rnd.Next(1, 20);
// cakalAtak = rnd.Next(1, 20);
// kurtAtak = rnd.Next(1, 20);
// domuzAtak = rnd.Next(1, 20);
// ayiAtak = rnd.Next(1, 20);
avci1Zirh = rnd.Next(12, 18);
// avci2Zirh = rnd.Next(12, 18);
// cakalZirh = rnd.Next(8, 10);
// kurtZirh = rnd.Next(10, 14);
domuzZirh = rnd.Next(14, 18);
// ayiZirh = rnd.Next(12, 16);
// avci1Hasar = rnd.Next(1, 6);
//avci2Hasar = rnd.Next(1, 6);
// cakalHasar = rnd.Next(1, 2);
// kurtHasar = rnd.Next(10, 14);
// domuzHasar = rnd.Next(1, 3);
// ayiHasar = rnd.Next(12, 16);
avci1Can = rnd.Next(25, 30);
domuzCan = rnd.Next(18, 22);
Console.WriteLine("Avcının Zırhı = {0} n Avcının Canı {1} n Domuzun Zırhı {2} n Domuzun Canı {3} n", avci1Zirh, avci1Can, domuzZirh, domuzCan);
while (avci1Can > 0 && domuzCan > 0)
{
avci1Atak = rnd.Next(1, 20);
avci1Hasar = rnd.Next(1, 6);
Console.WriteLine("Avcının atağı = " + avci1Atak);
Console.WriteLine("Avcının canı = " + avci1Can);
if (avci1Atak > domuzZirh)
{
domuzCan = domuzCan - avci1Hasar;
Console.WriteLine("Domuzun bu kadar canı azaldı = " + avci1Hasar);
Console.WriteLine("Domuzun yeni canı = " + domuzCan);
Console.ReadLine();
if (domuzCan <= 0)
{
break;
}
}
else if (avci1Atak==1)
{
avci1Can = avci1Can - avci1Hasar;
Console.WriteLine("Avcının yeni canı = " + avci1Can);
}
else
{
Console.WriteLine("Avcı hasar vuramadı.");
Console.ReadLine();
}
domuzAtak = rnd.Next(1, 20);
domuzHasar = rnd.Next(1, 3);
Console.WriteLine("Domuzun atağı = " + domuzAtak);
Console.WriteLine("Domuzun canı = " + domuzCan);
if (domuzAtak > avci1Zirh)
{
avci1Can = avci1Can - domuzHasar;
Console.WriteLine("Avcının bu kadar canı azaldı = " + domuzHasar);
Console.WriteLine("Avcının yeni canı = " + avci1Can);
Console.ReadLine();
}
else if (domuzAtak == 1)
{
domuzCan = domuzCan - domuzHasar;
Console.WriteLine("Domuzun yeni canı = " + domuzCan);
}
else
{
Console.WriteLine("Domuz hasar vuramadı.");
Console.ReadLine();
}
Console.WriteLine("");
}
Console.ReadLine();
![]() |
Notes is a web-based application for online 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 14 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