Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Lesson07#889

Open
AlexN-github wants to merge 8 commits into
GeekBrainsTutorial:masterGeekBrainsTutorial/Python_lessons_basic:masterfrom
AlexN-github:lesson07AlexN-github/Python_lessons_basic:lesson07Copy head branch name to clipboard
Open

Lesson07#889
AlexN-github wants to merge 8 commits into
GeekBrainsTutorial:masterGeekBrainsTutorial/Python_lessons_basic:masterfrom
AlexN-github:lesson07AlexN-github/Python_lessons_basic:lesson07Copy head branch name to clipboard

Conversation

@AlexN-github

Copy link
Copy Markdown

Все сделал

import random
for i in range(3):
self._matrix_3x9.append([0 for x in range(9)])
list_number = sorted(random.sample(range(self.vsego_bochenok+1),5))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

кажется что может оказаться так что в карточке будет несколько одинаковых чисел


class Game():
def __init__(self):
self.Meshok_ = Meshok()

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 on lines +149 to +158
try:
resp_str = input("Введите номера позиций на карточке в формате (i1,j1), (i2,j2), ... - где i1-номер строки, "
"j1 - номер столбца в карточке. Номера начинаются с 1 \n>>")
#Преобразуем введенную строку в список кортежей, где кортеж - координаты поля
s = resp_str[1:][:-1].split("),(")
resp = [tuple([int(y)-1 for y in x.split(",")]) for x in s]
return resp
except Exception as e:
print("Ошибка ввода, для продолжения нажмите Enter.\n",e)
input()

Copy link
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.