The inspiration for this game came from the offline google dinosaur game that can be accessed when your computer is not connected to the internet. My friends and I would occasionally get bored in class and turn our Chromebook Wi-Fi off just to play. While experimenting with programs that base out of terminals such as Node, Jupyter, and Anaconda, I would also occasionally get bored and want to relax m mind for a few minutes with a game. What better way to do that then a game that can be accessed inside the terminal.

The snake game is a very simple snake game that takes place inside a terminal. (Windows PowerShell Recommended) It uses the arrow keys to move the snake around the screen.

We built the program in VS code using python exclusively. The code can be run in a terminal using the code python HighTechHackathon.py (or python + whatever the file has been named + .py) The project must be downloaded into your desktop. We first imported random and curses for the food placements and curses for managing keys. We then created the SW/ SH for the GUI and worked our way from the food spawning to the snakes growth. It was done in only 60 lines, which took a while to get it down to!

I had very little experience with GUI programming and creation, so we encountered multiple errors in that aspect. We also forgot to install curses on VS code which messed our program up. Debugging was not too hard and we got it up and running pretty quick!

We are very proud of the line amount that our program took! I am also very proud of our GUI and us getting the H/W to work correctly for us! I believe that we did a great job.

I personally was able to strengthen m skills in creating GUIs and things like that. I learned about SW/ SH and more about the terminal command. We all were able to learn more about working in a group and how to strengthen our teamwork.

We don't see anything in the future for Terminal Snake Game. However, I will be focusing much more on terminal abilities and more games in the future. This was an incredible experience and I am super happy to have attended!

This project was created for High Tech Hacks 2021

Built With

Share this project:

Updates