Snake
h
AlexanderTarn (149)

Spoiler Alert: terrible graphics
I made a snake game in the terminal, it's not very good because it's laggy, but I think this is one of the most hardest programs I made, mainly because I had to ask for help a lot. Hope you enjoy!

You are viewing a single comment. View All
xolyon (106)

Great , I always wondered how you make GUI in text based console (please explain I always wanted to know)

AlexanderTarn (149)

@xolyon you first create a map with lists, then create another list that has all the lists, after that you print it (I used a range loop to create a string and print it). Then you do whatever and based on the outcome of whatever you change the lists. clear the terminal and repeat.

xolyon (106)

@AlexanderTarn great but how do you change the lists?

AlexanderTarn (149)

@xolyon you get the spot you want to change and make it equal to something else
((List with all lists)[index for y])[index for x]