GithubHelp home page GithubHelp logo

100-days-of-code's Introduction

100-days-of-code

Notes and Exercises from the 100 Days of Code Python Course on Udemy :)

100-days-of-code's People

Contributors

somepulp avatar

Watchers

 avatar Gloria avatar

100-days-of-code's Issues

Create a scoreboard

Keep track of score - as snake eats food, score increases by 1

  • Learn how to write text in the program: Score: _

Challenge 3

Check if the player has won:

  • using a while loop, allow the user to guess again until all the letters in the chosen_word have been found. When there are no more blanks in the display, they have won.

Challenge 5 - Improve UI

Improve UI by adding ascii art for logo. Also adding many more words.
Importing module with art and words.

Challenge 1

Pick random word from list and check answers.
User input will be a guessed letter, while output will be 'Right' or 'Wrong' displayed for the amount of letters in the word.

The Hurdles Loop Challenge

Completed challenge at Reeborg's World

def turn_right():
    turn_left()
    turn_left()
    turn_left()

def jump_hurdle():
    move()
    turn_left()
    move()
    turn_right()
    move()
    turn_right()
    move()
    turn_left()

for i in range(1, 7):
    jump_hurdle()

Detect collision with tail

When the head hits any part of the tail, it should be game over, and the snake should cease all movement

Detect collision with wall

When collision with wall happens, game should be over.
The snake should no longer move, and 'Game Over.' should be displayed on the screen

Escaping the Maze

Final Project:

  • write a program that includes instructions to escaping a randomly generated maze

Challenge 2

Convert blanks to guessed letter by completing the following #TODOs:

  1. Create an empty List called display
  2. Loop through each position in the chosen_word: if the letter at that position matches 'guess' then reveal that letter in the display at that position.
  3. Print 'display' and you should see the guessed letter in the correct position and every other letter replace with "_".

Challenge 4

Keep track of player lives:

  • create a variable to keep track of the number of lives left
  • check if guess is not letter in chosen word, reduce lives by 1.
  • if lives equal to zero, the game ends

Detect collision with food

Add food to the screen, then detect if the snake hits the food
Once the snake hits the food, a new piece of food is generated at a random place on the screen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.