Skip to content

Baby Name Game, Rock.Paper.Scissors, ZigZag, Collatz Sequence, TicTacToe, Chapter 4 and 5 Exercises

Notifications You must be signed in to change notification settings

K4KarolE/py_09-15_projects

Repository files navigation

09 - Name Game

  • Python not able to handle: 'name(string)' * 'name(string)' so what if..
  • asking to input 2 english names
  • validating them, no numbers, no special characters
  • turn the names into numbers by allocating the letters from the name to it`s index in alphabet: a=1, b=2 // Peter = 16+5+20+5+18
  • multiply the 2 numbers (from the names) with each other
  • result`s modulo 26 (26 letters in the US alphabet)
  • turn back that number into letter, that will be the first letter of the result/new name for both the boy and girl names
  • create a list with name(s) with the first letter
  • if there is more than 1 items in this list: #choose randomly from this group for both the boy and girl names
  • if there is no name with the first letter in the list, that is sign of the evil and the couple should not produce that type of life till I am alive

10 - Rock Paper Scissors

  • V1: just out of the box
  • V3: using/learning def() - declaration

11 - ZigZag

  • V1: Used to be a normal zigzag, now it is sth heaven
  • V2: Adding exit opportunity

12 - Collatz sequence

  • every int number can/will be reduced to 1 if we repeat continuously:
  • if the number even: number//2, and return value
  • if the number is odd: number*3 + 1, and return value

13 - Tic Tac Toe

  • symbol chosen by the first player
  • input / move already taken / win-draw validation

14 - Automate the Boring Stuff with Python - Chapter 4 - Practice

  • Comma Code: print from list
  • Coin Flip Streaks: counting 6 streaks in a 100 coin flip sequence
  • Character Picture Grid: "picture" in a deep list vertically, print out "standing"

15 - Automate the Boring Stuff with Python - Chapter 5 - Practice

  • Chess Dictionary
  • Growing Dictionary - User able to add new categories / genres / items (keys/values) to his/her favorites

About

Baby Name Game, Rock.Paper.Scissors, ZigZag, Collatz Sequence, TicTacToe, Chapter 4 and 5 Exercises

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages