From c2f3fa1a301a757a250f4da7719aa9faa1c31ba0 Mon Sep 17 00:00:00 2001 From: Kiarash <95994481+Ghosts6@users.noreply.github.com> Date: Fri, 2 Feb 2024 23:55:54 +0000 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index dfb7999..11ad713 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Key Features: 4 Score Page: Explore the dedicated score page to witness the top scores achieved by players. Be inspired by the best and strive to reach the pinnacle of the leaderboards. + snake.html ```html {% load static %} @@ -78,6 +79,7 @@ Key Features: ``` +snake.css ```css body { margin: 0; @@ -182,6 +184,7 @@ body { border: 3px double #007acc; } ``` +snake.js ```js function setRandomPosition(fruit) { const container = document.querySelector('.game-container'); @@ -503,6 +506,7 @@ function handleKeyPress(event) { document.addEventListener('keydown', handleKeyPress); }); ``` +views.py ```python def Snake_Game(request, player_name): top_scores = SnakeScore.objects.order_by('-score')[:1]