Skip to content

Develop#1

Open
hideman1231 wants to merge 9 commits into
masterfrom
develop
Open

Develop#1
hideman1231 wants to merge 9 commits into
masterfrom
develop

Conversation

@hideman1231

Copy link
Copy Markdown
Owner

No description provided.

Comment thread game.py Outdated
names = input("Enter your name: ")
print()
while True:
if Player.validate_names(names) == 0:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Это зачем?

Comment thread game.py Outdated
enemy = Enemy(1, 1)
while True:
try:
player.allowed_attacks = int(input("Choose your hero: 1-Wizard, 2-Warrior, 3-Rogue "))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

player.allowed_attacks вводит в заблуждение. назови её attack или как-то более понятно

Comment thread game.py Outdated
while True:
try:
player.allowed_attacks = int(input("Choose your hero: 1-Wizard, 2-Warrior, 3-Rogue "))
if player.validate_allowed_attacks() == 0:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

validate allowed attacks возвращает false или None. Почему сравнение с нулем?

Comment thread game.py Outdated
player.allowed_attacks = int(input("Choose your hero: 1-Wizard, 2-Warrior, 3-Rogue "))
else:
player.attack(enemy)
player.allowed_attacks = int(input("Choose defense: 1-Wizard, 2-Warrior, 3-Rogue "))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

allowed attacks должен содержать просто 1,2,3. При вводе должно проверятся, входит ли введенное значение в список allowed attacks

Comment thread game.py
except KeyboardInterrupt:
pass
finally:
print()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

?

Comment thread game.py
if command == "START":
next_lvl = 1
names = input("Enter your name: ")
print()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

?

Comment thread game.py Outdated
try:
play()
except GameOver:
GameOver.write_score(score_list[-1], name_list[-1])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Имеет смысл просто передать объект игрока и получить оттуда счет и имя. Зачем здесь списки непонятно

Comment thread models.py
elif attack == 2 and defense == 1:
return -1
elif attack == 3 and defense == 2:
return -1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

or?

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