This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace CSHome | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.InputEncoding = System.Text.Encoding.Unicode; | |
| Console.OutputEncoding = System.Text.Encoding.Unicode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace CSHome | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| const string CommandUsualDamage = "1"; | |
| const string CommandFireBall = "2"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace CSHome | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| int number = 2; | |
| Random random = new Random(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace CSHome | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Random random = new Random(); | |
| int leftPositionRandom = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace CSHome | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| string password = "qwerty"; | |
| int tries = 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace CSHome | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.WriteLine("Ведите используемый символ:"); | |
| char character = Console.ReadKey().KeyChar; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Text; | |
| namespace CSHome | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Console.InputEncoding = Encoding.Unicode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace CSHome | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| const string CommandChangeBackgroundColor = "1"; | |
| const string CommandChangeForegroundColor = "2"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace CSHome | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| Random random = new Random(); | |
| int lowerLimitRandom = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace CSHome | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| int startNumber = 5; | |
| int maxNumber = 103; |