Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project Tutorial Proposal - 3t8 #17

Open
3t8 opened this issue Oct 25, 2022 · 7 comments
Open

Project Tutorial Proposal - 3t8 #17

3t8 opened this issue Oct 25, 2022 · 7 comments

Comments

@3t8
Copy link

3t8 commented Oct 25, 2022

  1. Mastermind game in python - Beginning
  2. Calculator app with gui - Intermediate
  3. Wordle game telegram bot - Intermediate
@sonnynomnom
Copy link
Member

sonnynomnom commented Oct 26, 2022

Let's do 1 or 2! Which one do you like more?

Also, can you send us your name and one-line about yourself to [email protected]? Thanks!

@3t8
Copy link
Author

3t8 commented Oct 28, 2022

@sonnynomnom sent an email with a draft of the code for mastermind

@Bobliuuu
Copy link
Contributor

Bobliuuu commented Oct 29, 2022

Hey @3t8, the code looks good! 😄

Just a few changes:

  • Please follow the formatting guidelines.
  • Python indentations are two spaces
  • while (guess != number):
  • To generate a better random number, you can create a list of '0' to '9', and generate 4 random values for that list (right now, 0s are more likely to be generated)
  • 'Correct position: ' and 'Correct number: ' seem a bit confusing, maybe put 'Correct position and number: '?

Once you make those changes, you can start writing your project tutorial!
Please use the project template provided by Codédex for your tutorial!

@3t8 3t8 mentioned this issue Nov 6, 2022
6 tasks
@3t8
Copy link
Author

3t8 commented Nov 6, 2022

  • To generate a better random number, you can create a list of '0' to '9', and generate 4 random values for that list (right now, 0s are more likely to be generated)

The probability of picking 1 number out of 10000 is 1/10000 (0.01%)
The probability of picking 1 number out of 10 is 1/10 (10%)
If we were to pick 4 numbers in a row with a 1/10 chance, the overall probability would be 1/10 * 1/10 * 1/10 * 1/10 = 1/10000 (10% * 10% * 10% * 10% = 0.01%)
I think there is no difference between the method I used and the one you proposed.

@3t8
Copy link
Author

3t8 commented Nov 6, 2022

@sonnynomnom let me know if I should change anything else in #32
I'm also not sure if you have a template for the header image or that's something you take care of internally

@Bobliuuu
Copy link
Contributor

Bobliuuu commented Nov 8, 2022

Hey @3t8,
Thank you for getting back to us! We will review your project tutorial and let you know 😄
We will create the header image for you 🚀

@3t8
Copy link
Author

3t8 commented Nov 18, 2022

@Bobliuuu Did you get a chance to take a look at the project?

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

No branches or pull requests

3 participants