From 5d4abca63af70e9c584f2b8ac7157ba9fb6abe93 Mon Sep 17 00:00:00 2001 From: "Rosa Estrada, M.S." <167933489+rosaaestrada@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:39:06 -0700 Subject: [PATCH] Update readme.md I enhanced the description of the Snake Game that adds more context and information. --- SNAKE/readme.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/SNAKE/readme.md b/SNAKE/readme.md index 60d3a2b3..4e961e4a 100644 --- a/SNAKE/readme.md +++ b/SNAKE/readme.md @@ -1,3 +1,18 @@ ## Snake game -This is a basic snake game implementation \ No newline at end of file +### This is a classic implementation of the Snake Game using Python's 'turtle' module. + +#### Goal: +- The player controls a snake, navigating it around a confined box to eat food and grow in length. +- It consumes as much food as possible without colliding with the snake's own body or exiting the game boundaries. + +#### Game Mechanics: +- The game starts with a snake of five segments positioned in the center of the screen, moving upward by default. +- The food appears randomly on the screen within the boundaries, and the player must guide the snake to collide with the food to grow the snake. +- After consuming the food, the score increases by 10 points, and a new food piece is generated at a random position. + +#### Screen Wrapping: +- If the snake moves beyond the edges of the box, it will reappear on the opposite side of the screen, allowing for continuous gameplay without hitting the borders. + +#### Collision Detection: +- If the snake's head collides with any part of its own body, the game resets, and the current score is displayed.