Avdhesh-Varshney / Jarvis

Jarvis is an AI-powered application that allows users to control various devices and applications through voice commands, offering tailored services based on user roles.
https://jarvis-ai-assistant.streamlit.app/
MIT License
33 stars 42 forks source link

added snake game #116

Closed ShrishtiSingh26 closed 2 hours ago

ShrishtiSingh26 commented 1 day ago

Closes: Issue #112

Describe the add-ons or changes you've made πŸ“ƒ

Give a clear description of what have you added or modifications made Key Points: Game State Management: All the game state (snake, food, direction, etc.) is stored in st.session_state to persist across user actions. Grid Display: The game grid is displayed using emojis (🟩 for the snake and 🍎 for the food), but you can customize this. Movement Control: The player controls the snake with W, A, S, D keys via Streamlit buttons. Game Logic: The snake moves, eats food, grows, and checks for collisions with walls or itself. Restart Option: A restart button re-initializes the game state.

Checklist: β˜‘οΈ

Screenshots πŸ“·

image image

github-actions[bot] commented 1 day ago

Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE.

ShrishtiSingh26 commented 14 hours ago

@Avdhesh-Varshney resolved the raised issues in PR #117