FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Lesson07 by AlexN-github · Pull Request #889 · GeekBrainsTutorial/Python_lessons_basic · GitHub

Repository navigation

Lesson07 - #889

Open
AlexN-github wants to merge 8 commits into
GeekBrainsTutorial:masterfrom
AlexN-github:lesson07
Open

AlexN-github wants to merge 8 commits into
GeekBrainsTutorial:masterfrom
AlexN-github:lesson07

Conversation

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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


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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

с большой буквы мы именуем только названия классов, все остальное - с маленькой

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

бедный пользователь, заставили его вбивать координаты числа) - не очень юзерфрендли))

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL