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.
170 questions
5
votes
2
answers
136
views
First game in C++ Snake2d
I decided to dig into game programming, and here is my first C++ project snake2d game.
Please review it. I've used X11 for Linux and Win32 API for Windows build. For graphics and rendering part I've ...
6
votes
1
answer
654
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 ...
4
votes
1
answer
98
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 ...
4
votes
1
answer
91
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 ...
5
votes
1
answer
175
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 ...
6
votes
1
answer
475
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 ...
2
votes
0
answers
153
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 ...
1
vote
1
answer
139
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 ...
3
votes
1
answer
174
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:
<...
2
votes
1
answer
488
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 ...
6
votes
1
answer
515
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 ...
1
vote
2
answers
483
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.
...
0
votes
0
answers
71
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 ...
2
votes
1
answer
280
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 ...
8
votes
1
answer
1k
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 ...