Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghosts6 authored Feb 2, 2024
1 parent 60129ef commit c2f3fa1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
<!DOCTYPE html>
Expand Down Expand Up @@ -78,6 +79,7 @@ Key Features:
</body>
</html>
```
snake.css
```css
body {
margin: 0;
Expand Down Expand Up @@ -182,6 +184,7 @@ body {
border: 3px double #007acc;
}
```
snake.js
```js
function setRandomPosition(fruit) {
const container = document.querySelector('.game-container');
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit c2f3fa1

Please sign in to comment.