Skip to content

Conversation

@iamAlimzhan
Copy link

No description provided.

import java.util.ArrayList;
import java.util.List;

public class Hero2 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Не используем цифры в названиях классов

public class Hero2 {
private String heroName;
private int currentMana;
List<MagicItem> inventory;
Copy link
Contributor

Choose a reason for hiding this comment

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

private

for (int i = 0; i < numTurns; i++) {
try {
if (hero.inventory.isEmpty()) {
throw new NoItemsException("У героя нет предметов для использования.");
Copy link
Contributor

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