Skip to content

kBashar/pysnacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

pysnacks

Problem statement

  1. There is a food object, eating(colliding with) that makes the snakes bigger.
  2. Snake can move in three directions a. up b. down c. forword
  3. If snake is a chain of objects, every object shifts to the previous object's position.
  4. If the snakes collide with itself, it's dead, Game Over!
  5. If the snake hits an edge, Game Over!

ToDos

1.a. Make a grid in the screen. 1.b. Create an object that moves in three directions. 1.c. snake object moves automatically

  1. Make the frog object appear randomly on screen.
  2. On eating(colliding with) the object the sanke object grows in length.
  3. Follow the snake path
  4. A new Oject pop up excluding the sanke body.

20 x 20 400 cell 400 x 400 array = [5][6] array[3][2] = 1 array[3][3] = 1

0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 [210] = 0 210/20 10 10

refs: https://realpython.com/python-scope-legb-rule/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages