Skip to content

Matias Rodeghiero#6

Open
ElRode14 wants to merge 2 commits intocamigomezdev:mainfrom
ElRode14:main
Open

Matias Rodeghiero#6
ElRode14 wants to merge 2 commits intocamigomezdev:mainfrom
ElRode14:main

Conversation

@ElRode14
Copy link
Copy Markdown

No description provided.

ElRode14 added 2 commits May 25, 2023 14:16
Se agregó que devuelva un símbolo # para el caso que no se adivine ningún número además de validaciones extras.
if trueNumber == '':
return 'Number is not defined'
def __init__(self):
self.TRUE_NUMBER = '1025'
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Nice


if numero == trueNumber:
return True
def adivinar(self, intento=0, numero=None):
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Te recomiendo mantener consistencia entre los nombres de las variables y las funciones en un solo idioma 😄 y quizá ser mas específico, como guess_number.

if numero == trueNumber:
return True
def adivinar(self, intento=0, numero=None):
self.arrayNumber = []
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Recuerda que se recomienda en pep8 usar snake_case para nombrar las variables

Comment on lines +32 to +33
if numero == self.TRUE_NUMBER:
return intento, True
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Recuerda intentar mantener un mismo idioma a través de tus variables

elif numero[x] in self.TRUE_NUMBER:
self.arrayNumber.append("X")
else:
self.arrayNumber.append("#")
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Podrias modificar la logica para que agrupe primero las (X), luego los (_) bajos y por ultimo los espacios?

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