Skip to content

panditsamik/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

Welcome to the Snake Game project! This repository is part of Hacktoberfest 2023, where developers like you can contribute to open-source projects. We're excited to have you on board!

About the Project

The Snake Game is a classic arcade game where you control a snake, guiding it to eat food and grow longer without running into the walls or itself. This project aims to provide a fun and interactive web-based version of the game that you can play right in your web browser.

How to Contribute

We encourage you to contribute to this project and make it even better! Here are the steps to get started:

  1. Fork this repository: Click the "Fork" button at the top-right corner of this page to create your own copy of the repository.

  2. Create a new folder/directory: Inside your forked repository, create a new folder/directory for your contributions. You can name it anything related to your project or feature.

  3. Add your contribution: Develop and add your code, features, improvements, or bug fixes to the directory you created. Make sure your code aligns with the project's goals and follows best practices.

  4. Make a Pull Request: Once you're ready to share your contribution, create a Pull Request (PR) by clicking the "New Pull Request" button in the original repository. Describe your changes and submit the PR.

  5. Review and Collaboration: Your PR will be reviewed by maintainers and contributors. We appreciate your contributions and will work together to ensure your code fits well with the project.

  6. Celebrate Hacktoberfest: By contributing to this project, you're participating in Hacktoberfest 2023. Feel proud of your open-source contributions!

Getting Started

To run the Snake Game locally or try it out, follow these steps:

  1. Clone this repository to your local machine

  2. Open the index.html file in your web browser to play the game.

  3. Enjoy the Snake Game and try to achieve the highest score!

Project Structure

  • index.html: The main HTML file that renders the game interface.
  • style.css: CSS styles for styling the game layout.
  • script.js: JavaScript code that handles the game logic and functionality.

Run the snake game using docker container

  docker build -t snake:<tag> .
  docker run -itd -p 80:80 snake:<tag>

Issues and Feedback

If you encounter any issues, have ideas for improvements, or want to report a bug, please create an issue. Your feedback is valuable to us, and we appreciate your contributions to make this project better.

License

This project is open-source and available under the MIT License. Feel free to fork, modify, and use it according to the terms of the license.

Happy coding and have a great time playing the Snake Game!