# data[].attributes.attachment_link.title
Návrh a implementácia inteligentného systému pre automatizovanú údržbu akvária

# data[].attributes.attachment_link.readable_text
���using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace du_1
{
    internal class Program
    {
        static int uloha_a(int figurka_1, int figurka_2, int draha)
        {
            Random rnd = new Random();

            Console.WriteLine("preteky- mozu prejst cielovou ciarou");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("3...");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("2...");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("1...");
            System.Threading.Thread.Sleep(1000);

            while((figurka_1<draha) && (figurka_2 < draha))
            {
                int num1 = rnd.Next(1, 7);
                figurka_1 = figurka_1 + num1;
                Console.WriteLine($"Hod kockou: {num1}");
                Console.WriteLine($"Figurka 1: {figurka_1}");

                int num2 = rnd.Next(1, 7);
                figurka_2 = figurka_2 + num2;
                Console.WriteLine($"Hod kockou: {num2}");
                Console.WriteLine($"Figurka 2: {figurka_2}");

                System.Threading.Thread.Sleep(300);
                Console.WriteLine(" ");
            }

            if (figurka_1 > figurka_2)
            {
                Console.WriteLine("Vyhrala figurka 1!");
            }
            else
            {
                Console.WriteLine("Vyhrala figurka 2!");
            }

                return 0;
        }

        static int uloha_b(int figurka_1, int figurka_2, int draha)
        {
            Random rnd = new Random();

            Console.WriteLine("preteky- zastavenie na cielovej ciare");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("3...");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("2...");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("1...");
            System.Threading.Thread.Sleep(1000);

            while ((figurka_1 < draha) && (figurka_2 < draha))
            {
                int num1 = rnd.Next(1, 7);
                if ((figurka_1 + num1) <= draha)
                {
                    figurka_1 = figurka_1 + num1;
                }

                Console.WriteLine($"Hod kockou: {num1}");
                Console.WriteLine($"Figurka 1: {figurka_1}");

                int num2 = rnd.Next(1, 7);
                if ((figurka_2 + num2) <= draha)
                {
                    figurka_2 = figurka_2 + num2;
                }
                Console.WriteLine($"Hod kockou: {num2}");
                Console.WriteLine($"Figurka 2: {figurka_2}");

                System.Threading.Thread.Sleep(300);
                Console.WriteLine(" ");
            }

            if ((figurka_1 > figurka_2))
            {
                Console.WriteLine("Vyhrala figurka 1!");
            }
            else
            {
                Console.WriteLine("Vyhrala figurka 2!");
            }

            return 0;
        }

        static int uloha_c(int figurka_1, int figurka_2, int draha)
        {
            Random rnd = new Random();

            Console.WriteLine("preteky- posielanie na zaciatok trasy");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("3...");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("2...");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("1...");
            System.Threading.Thread.Sleep(1000);

            while ((figurka_1 < draha) && (figurka_2 < draha))
            {
                int num1 = rnd.Next(1, 7);
                figurka_1 = figurka_1 + num1;
                Console.WriteLine($"Hod kockou: {num1}");
                Console.WriteLine($"Figurka 1: {figurka_1}");

                if (figurka_1 == figurka_2)
                {
                    figurka_2 = 0;
                }

                int num2 = rnd.Next(1, 7);
                figurka_2 = figurka_2 + num2;
                Console.WriteLine($"Hod kockou: {num2}");
                Console.WriteLine($"Figurka 2: {figurka_2}");

                if (figurka_1 == figurka_2)
                {
                    figurka_1 = 0;
                }

                System.Threading.Thread.Sleep(300);
                Console.WriteLine(" ");
            }

            if (figurka_1 > figurka_2)
            {
                Console.WriteLine("Vyhrala figurka 1!");
            }
            else
            {
                Console.WriteLine("Vyhrala figurka 2!");
            }

            return 0;
        }

        static void Main(string[] args)
        {
            int figurka_1 = 0;
            int figurka_2 = 0;
            int draha = 100;

            Console.WriteLine("Vyberte typ preteku (stlacenim a-c): ");
            char vyber = (char)Console.Read();
            if (vyber == 'a')
            {
                uloha_a(figurka_1, figurka_2, draha);
            }
            else if (vyber == 'b')
            {
                uloha_b(figurka_1, figurka_2, draha);
            }
            else if (vyber == 'c')
            {
                uloha_c(figurka_1, figurka_2, draha);
            }
            else
            {
                Console.WriteLine("Chyba- zvolte moznost a, b alebo c");
            }

        }
    }
}

# data[].attributes.body
meno- adsp

heslo- ADSP

# data[].attributes.body
meno- ktpe

heslo- student2000

# data[].attributes.body
meno- vsape

heslo- VS2019

# data[].attributes.body
meno- ktpe

heslo- student2000