Skip to main content

Questions tagged [snake-game]

Snake is a video game in which the player turns the head of the snake as it moves around the screen, trying to avoid colliding with the snake's body or running out of bounds.

6 votes
1 answer
560 views

Play Snake Game on Mac OS Terminal using C with ncurses Library

Made a simple snake game in C. I am just having some fun with program and using this as a spring board of knowledge in hopes to get some confidence to maybe try different kinds of projects. I am ...
Alf's user avatar
  • 63
4 votes
1 answer
79 views

Terminal based game: Part 3 (Using templated game)

Working from previous posts In this post: Terminal based game: Part 2 I introduced the concept of a Game object. To build a game like Terminal Base Snake you could ...
Loki Astari's user avatar
  • 95.4k
4 votes
1 answer
76 views

Terminal Base Snake

Based on this Framework Terminal based game: Part 2 A game that uses std::cout to print the board and std::cin to get keyboard ...
Loki Astari's user avatar
  • 95.4k
5 votes
1 answer
156 views

Recreated Snake in Rust

This is my first ever program in Rust. I've made it using only the book, the reference, and any documentation about the crates/functions I was using on the official rust lang website. I have the ...
teoscuraa's user avatar
0 votes
0 answers
53 views

Snake game player movement pygame

I've begun my journey with game development a little while ago, thought recreating snake would be cool, except I plan on adding other cool mechanics and stuff to it later. The player controller script ...
Trevn Jones's user avatar
6 votes
1 answer
432 views

C# Snake in Console

I've created Snake in Console. I've tried to make my code as good as I possibly could. (Code on github: https://github.com/bartex-bartex/SnakeCSharp) Question Is my coding style good enough, so I can ...
NeverDoomedEnough's user avatar
2 votes
0 answers
119 views

Snake game with constant time complexity algorithm

https://github.com/speedrun-program/constant_time_snake_game Memory efficient snake game with O(1) algorithm for snake movement and bug placement. Three grids are used: a grid representing the game ...
my_stack_exchange_account's user avatar
0 votes
1 answer
110 views

Snake game with Pygame

I created and finished a Snake using pygame (in Python) utilising feedback I had from a previous code review a year or two ago. I'm pretty happy with the current state and havn't identified any bugs ...
blib's user avatar
  • 73
3 votes
1 answer
153 views

python pygame snake game

I used numpy for the O(n) parts, but I didn't add any ability to change grid size because I still wonder if there's a way to make it better than O(n). main.py: <...
my_stack_exchange_account's user avatar
2 votes
1 answer
462 views

Object-oriented Snake game in HTML without using canvas

I wanted to try out classes in Javascript and implemented a snake game. You can control the snake by using the arrow keys. I would be interested to know if the source code can be improved in terms of ...
Dexter Thorn's user avatar
  • 2,174
6 votes
1 answer
499 views

Snake Game Clone in JavaFX

I am a beginner at programming. I made this snake game in JavaFX to practice and improve my coding skills. I tried to make my code clean, but I'm not sure if it is, or if it is well-organized. I also ...
Abeer's user avatar
  • 63
1 vote
2 answers
446 views

Simple snake game with C and raylib

Made a simple snake game using C and raylib for graphics, Would like to be critiqued on the clearity and efficiency of the code. ...
throwaway364's user avatar
1 vote
0 answers
54 views

I've coded a javascript snake game, but i'm not sure if i've used module pattern correctly

I've wrapped everything inside a gamecontroller, so that everything is private, was this a good idea? that was my first time using oop and module pattern. also the code is in a good shape, or must be ...
leo___'s user avatar
  • 11
2 votes
1 answer
258 views

Snake game as console app in c++

I made a snake game as console aplication. It was my first real little project I did all alone. I tried using best practices I learned but I've got lost few times so I suppose there will be some bad ...
Ivica's user avatar
  • 75
7 votes
1 answer
963 views

C# Console Snake Game

I was busy writing an answer for this question when I realized that I was busy creating a new solution without explaining what the original poster did wrong, again. So I decided to rather post what I ...
jdt's user avatar
  • 2,362

15 30 50 per page
1
2 3 4 5
12