Skip to content

Conversation

@SoldatovMikhaul
Copy link

No description provided.

@SoldatovMikhaul
Copy link
Author

{
public interface Abilities
{
void Ability(Player player);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем?

public int Strong { get; } = rnd.Next(1, 99);
public Abilities UsingAbility { get; set; }

public List<Abilities> UseAbility = new List<Abilities>();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔕 Но не плохо было бы его инкапсулировать

public List<string> Effects = new List<string>();
public void Ability()
{
if (!Effects.Contains("Freezing"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Точно имена должны быть в виде enum'ов


Console.WriteLine(" ");
Console.WriteLine("Team1");
for (int i = 0; i < numberOfPlayers / 2; i++)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вынести выбор в отдельный метод

{
Random rnd = new Random();
int a = rnd.Next(0, 3);
if (a == 0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switch - case

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create enum wit classes


Console.WriteLine(" ");

for (int i = 0; i < numberOfPlayers / 2; i++)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

отдельный метод

Console.WriteLine("{0} have {1}, his strong: {2}", player.Enemy, player.Enemy.HP, player.Enemy.Strong);
while (player.HP > 0 && player.Enemy.HP > 0)
{
Console.WriteLine(" ");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logger

var arr1 = new[] { 0, 1 };
var rndMember = arr1[b.Next(arr1.Length)];

// int cooldown=0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔪

{
if ((rndMember != 0) && (cooldownTeam1 != 3))
{
if (player.ToString() == "RPG.Knight")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants