Giter Club home page Giter Club logo

snake-game's Introduction

Retro Snake Game

Download notes

The actual game itself is run through snake_game.py, though the other files are necessary accessories!

Inspiration

This was created in just a few hours as part of Dartmouth's Hackathon 2018. We were inspired by the Atari Pong lab we created as part of our introductory CS course at Dartmouth. We loved the idea of making retro games and wanted to try another one.

What it does

The premise is simple. You are a snake, navigating with WASD, looking to eat as many munchies as possible by redirecting your head. Watch out for the walls and make sure you don't eat yourself!

How I built it

We used Python and the cs1lib graphics framework developed by Devin Balkcom.

Challenges I ran into

It was difficult to limit the directions of the snake (if the user presses up and right at the same time, for example) without limiting the users input choices. We decided to allow only the first of a given command within a 0.1 second timeframe to be recognized.

Accomplishments that I'm proud of

The game is user-friendly and graphically pleasing.

What I learned

Python is a robust development tool with some functionalities we didn't realize (such as class overriding methods for object equality).

What's next for Old-School Snake

We hope to return to this project in the future to add more functionality, including 2 players and greater options for user input with regards to the game's settings (such as initial snake length and board size).

snake-game's People

Contributors

shreyas-v-agnihotri avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.