Skip to content

Instantly share code, notes, and snippets.

View talatari's full-sized avatar
🚀
Learn C# & Unity

Tsaplin Sergey talatari

🚀
Learn C# & Unity
View GitHub Profile
@talatari
talatari / 38. Task: Job With Classes
Last active November 14, 2023 07:52
38. Task: Job With Classes
public class Program
{
static void Main()
{
Player player = new Player(nickName: "MightyBlow",
hitPoints: 100,
damage: 20,
armor: 33);
player.ShowStats();
@talatari
talatari / 39. Task: Working With Properties
Last active November 14, 2023 07:52
39. Task: Working With Properties
public class Program
{
static void Main()
{
Player player = new Player(10, 10);
Painter painter = new Painter();
painter.DrawPosition(player);
}
}
@talatari
talatari / 40. Task: Players Database
Last active November 14, 2023 07:51
40. Task: Players Database
public class Program
{
static void Main()
{
Database database = new Database();
database.Work();
}
}
public class Player
@talatari
talatari / 41. Task: Deck Of Cards
Last active November 14, 2023 07:51
41. Task: Deck Of Cards
public class Program
{
static void Main()
{
Game game = new Game();
game.Play();
}
}
public class UserUtils
@talatari
talatari / Repeat practice
Created August 17, 2023 12:45
Repeat practice
public class Program
{
static void Main()
{
Database database = new Database();
database.Work();
}
}
class Player
@talatari
talatari / 42. Task: Book Storage
Last active November 14, 2023 07:50
42. Task: Book Storage
public class Program
{
static void Main()
{
BookStorage bookStorage = new BookStorage();
bookStorage.Work();
}
}
public class Book
@talatari
talatari / 43. Task: Shop
Last active November 14, 2023 07:50
43. Task: Shop
public class Program
{
static void Main()
{
Shop shop = new Shop();
shop.Open();
}
}
class Product
@talatari
talatari / 44. Task: Passenger Train Configurator
Last active November 14, 2023 07:50
44. Task: Passenger Train Configurator
public static class Program
{
public static void Main()
{
Station station = new Station();
station.Work();
}
}
public class Station
@talatari
talatari / HW41
Last active November 14, 2023 07:50 — forked from JUGADORUS/HW41
class Program
{
static void Main(string[] args)
{
DataBase dataBase = new DataBase();
dataBase.Work();
}
}
class Player
@talatari
talatari / 45. Task: Gladiator Fights
Last active November 14, 2023 07:50
45. Task: Gladiator Fights
namespace GladiatorFights
{
public static class Program
{
public static void Main()
{
Colosseum colosseum = new Colosseum();
colosseum.Work();
}
}