Loading...

Във форума е въведено ограничение, което позволява на потребителите единствено да разглеждат публикуваните въпроси.

Iv_Konov avatar Iv_Konov 383 Точки
Best Answer

Здравей,

готово - 100/100.

 

=======

 string command = Console.ReadLine(); // добавих вход за End of game

            while (command != "End of game")
            {
                int firstPlayerCard = int.Parse(command); // добавих вход за End of game
                int secondPlayerCard = int.Parse(Console.ReadLine());
                if (firstPlayerCard > secondPlayerCard)
                {
                    firstPlayerPoints += firstPlayerCard - secondPlayerCard; // firstPlayerPoints = firstPlayerCard - secondPlayerCard
                }
                else if (secondPlayerCard > firstPlayerCard)
                {
                    secondPlayerPoints += secondPlayerCard - firstPlayerCard;
                }
                else if (firstPlayerCard == secondPlayerCard)
                {
                    NumberWars = true;
                    firstPlayerCard = int.Parse(Console.ReadLine());
                    secondPlayerCard = int.Parse(Console.ReadLine());
                    if (firstPlayerCard > secondPlayerCard)
                    {
                        //firstPlayerPoints = firstPlayerCard - secondPlayerCard;  // тук не се сумира разликата в точките - просто се печели играта с точките до момента!
                        numberWarsWinner = firstPlayerName;
                        numberWarsWinnerPoints = firstPlayerPoints;
                        break;
                    }
                    else if (secondPlayerCard > firstPlayerCard)
                    {
                        //secondPlayerPoints = secondPlayerCard - firstPlayerCard; // тук не се сумира разликата в точките - просто се печели играта с точките до момента!
                        numberWarsWinner = SecondPlayerName;
                        numberWarsWinnerPoints = secondPlayerPoints;
                        break;
                    }
                }
                command = Console.ReadLine(); //firstPlayerCard = int.Parse(Console.ReadLine()) // добавих вход за End of game
                //secondPlayerCard = int.Parse(Console.ReadLine());
            }

=======

 

Поздрави,

Иван

1
09/04/2019 21:13:20
whitez avatar whitez 6 Точки

Благодаря !

1
Rocio58 avatar Rocio58 -2 Точки

I am glad to read this article. [url=https://www.google.com]google[/url]

-1
Rajaghere avatar Rajaghere -1 Точки

Get the Netflix Apk, Premium Cracked Version, for Android and IOS from our website. Watch Unlimited Movies/Shows in 4k for free.

-1
barcel44 avatar barcel44 -2 Точки

Instead of movie theatres in USA Showbox movies online app allows us to stream or download movies for Android and iOS devices like CinemaBox HD app & Playbox HD app. Watch free HD movies and TV shows on your Android phone, tablet, or TV box. Showbox app download allows you to stream or download movies. As popular and safe to use as they may be, ShowBox and other similar apps are borderline illegal. They let you stream TV shows and movies or download them for offline viewing – all for free. You don’t have to pay a dime.

-1
Ashgbwa avatar Ashgbwa 0 Точки

Същият вид проблем, който получих обаче, този site е полезен за мен, повечето от тях ми казаха решението на проблема. Благодаря момчета.

0
Rocio58 avatar Rocio58 -2 Точки

I am glad to read this article. google

-1
DeniisV avatar DeniisV -1 Точки

Hello. I see on this page there is information about the Showbox app. And that's cool. It is a pity that it does not work stably, but there is an explanation for this. I found an interesting article that explains everything. You can read it here " Showbox app" https://pipsli.net/en/android-apps/multimedia/125-showbox.html

-1
Alish12 avatar Alish12 -2 Точки

Thanks for the solution, sir. it's a great help.

Regards, null's clash

-1
Можем ли да използваме бисквитки?
Ние използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Можете да се съгласите с всички или част от тях.
Назад
Функционални
Използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Използваме „сесийни“ бисквитки, за да Ви идентифицираме временно. Те се пазят само по време на активната употреба на услугите ни. След излизане от приложението, затваряне на браузъра или мобилното устройство, данните се трият. Използваме бисквитки, за да предоставим опцията „Запомни Ме“, която Ви позволява да използвате нашите услуги без да предоставяте потребителско име и парола. Допълнително е възможно да използваме бисквитки за да съхраняваме различни малки настройки, като избор на езика, позиции на менюта и персонализирано съдържание. Използваме бисквитки и за измерване на маркетинговите ни усилия.
Рекламни
Използваме бисквитки, за да измерваме маркетинг ефективността ни, броене на посещения, както и за проследяването дали дадено електронно писмо е било отворено.