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.

Filter by
Sorted by
Tagged with
4 votes
2 answers
9k views

Snake Game in C++ using OOP

I am currently a student and I have an assignment in my OOP C++ course where I need to create a snake game using these specific requirements. I added some features into snake to fit these requirements ...
15 votes
2 answers
105k views

Snake game in C

Here is a very basic Snake game in C, which I just want to make better. The game is working perfectly but it is very annoying because when playing it, it is always blinking. I hope that somebody could ...
4 votes
2 answers
4k views

Java Snake game using MVC with difficulty settings, persistent stats, and sounds

I completed two intro computer science courses on the basics of Java programming and data structures in university, and have continued to study programming on my own over the past few months. This is ...
11 votes
1 answer
8k views

Snake game for Windows console

I would apreciate any suggestions on how to make my code better and more efficient. ...
5 votes
1 answer
226 views

3D 1st Person Snake Game #2

This is an iterative review of this question: 3D 1st Person Snake Game #1 The next iteration can be found here: 3D 1st Person Snake Game #3 Here is a snippet of the code: ...
2 votes
1 answer
617 views

3D 1st Person Snake Game #1

Snake on a plane 2.0 This is the first iteration of an iterative review. The next iteration is found here: 3D 1st Person Snake Game #2 When I figure out how to add wings, this snake is going to have ...
4 votes
1 answer
530 views

Snake game made with Python

how would I go about making this code "cleaner"? Right now it's a pain to look at and try to understand. ...
11 votes
1 answer
301 views

Snake on a Plane

My code uses a canvas element to create a live snake game on a plane! ...
4 votes
0 answers
1k views

Snake in Haskell with Ncurses

I've created the Snake implementation in Haskell. User input and graphic is handled by the Ncurses library. The goal of this question is to get the feedback on what can I improve to make it more ...
2 votes
0 answers
559 views

Battle-based snake game in tkinter

Disclaimer: This code is far from complete, I am aware of issues regarding my standards of naming, my lack of comments and readability, however I am encountering a large issue which is preventing me ...
7 votes
1 answer
4k views

Snake game for Windows console, avoiding flicker from system("cls")

I just completed my own implementation of the classic snake using what I consider to be unique methods. Rather than having a map be cleared over and over again using ...
3 votes
0 answers
5k views

Snake Game using python and tkinter

I have written a Snake game using Python's Tkinter library. I am a beginner to programming. I learned some python alone and in school. However, most of what we did in school is algorithms/data ...
26 votes
1 answer
50k views

Snake game using PyGame

I wrote a simple Python snake game which is about 250 lines of code. Can someone give me some advice on how I can refactor/make it better? game.py ...
13 votes
1 answer
82k views

Java Snake game

I am a self - taught coder, and have been learning Java / C# for the last 2 1/2 years (inconsistently). I have recently created a snake game in Java with the help of an online tutorial. I have ...
4 votes
1 answer
5k views

Snake Game on pygame

I'm working for a month or so on a Snake game in Python. It's working well (I got some good help on it already), but since I'm a beginner in pygame, I would like some feedback from better programmers ...
10 votes
1 answer
608 views

CodeFights: Snake Game

Description Your task is to imitate a turn-based variation of the popular "Snake" game. You are given the initial configuration of the board and a list of commands which the snake follows ...
2 votes
2 answers
878 views

Console Based Snake Game

This is a simple program where the goal is to visualize a virtual game to be played by an AI. For the purposes of this post, the playGameManually() function was ...
3 votes
0 answers
204 views

Simple Snake Game - Follow-up 2

Based on the previous question, I have implemented all suggestions. Also, I worked a bit in this project to improve it. Summary of improvements: split the code into multiple files as .hpp and .cpp ...
5 votes
0 answers
1k views

Multithreaded Excel + VBScript Timer: Snake Game Demo

Multithreaded Excel + VBScript Timer After reviewing these post: Snake in Excel in… VBA? and Drawing a snake using arrow keys in Excel using VBA, I decided to work on creating a VBA Timer. The ...
1 vote
1 answer
2k views

Xaml Wpf Snake game

I'm doing a game in Xaml WPF and I didn't really choose the tools and languages. It's to be hidden in a really big app with a lot of code. The whole snake takes place in a simple xaml canvas and xaml....
2 votes
0 answers
299 views

Which JavaScript snake-game implementation is better?

I was sort of bored and wondered how that Youtuber (Max Wihlborg) implemented his snake-game, so I went on and took a look at his code, and then I and edited his code. I made some minor changes, but ...
3 votes
1 answer
224 views

Snake videogame in Python

I made a Snake game in Python 3 with pygame. Please do critique it as much as possible. IMPORTANT NOTE: I updated the code at 3:30 3/23 ...
10 votes
1 answer
3k views

Python snake game

If anyone has the patience to take a look at my first python snake game, I'd be very grateful for any feedback. I am fairly new to programming and Python, but am looking to improve so any constructive ...
5 votes
1 answer
248 views

Bare bones SNAKE game

This is the bare bones of a SNAKE game that I'm working on, the code runs as is, I've taken great care to keep my code clean and readable. I would appreciate feedback on my code. I plan on creating ...
5 votes
1 answer
587 views

Rust Snake Game

...
4 votes
2 answers
2k views

SDL game: Snake clone

I've been coding for about two months, and I recently attempted my first game. I'd appreciate any advice or feedback on how to improve my coding. For instance, I don't think the organisation is the ...
5 votes
1 answer
11k views

C++ OpenGL Snake clone

I have made a multi-platform Snake clone in C++ using OpenGL and GLUT. I am a beginner in graphic game development. I would like to add more features, but I have programmed the base game so far. I ...
6 votes
1 answer
1k views

C++ Snake Game, rewritten based on a C implementation

I have a c# background and mostly worked on Web Applications. Recently I wanted to learn c++. I read many online resources and inspect 10s of source code shared on Stack Overflow / Code Review or from ...
2 votes
1 answer
177 views

Snake game get lagspikes despite my optimization

Why is my code lagging? It gets those lagspikes that will ruin the whole game. I know JavaScript in the browser maybe isn't the best for games, but it doesn't have to lag? ...
2 votes
2 answers
2k views

Python snake game with pygame

I am a new programmer and I sill don't know how to write a clean code. please suggest me ways to improve my skill and how to write a proper code. ...
12 votes
2 answers
3k views

Snake with ncurses in C

I've implemented a version of snake using GNU ncurses, and I'd appreciate some feedback! There are two main files, a main.c file that houses the ...
6 votes
1 answer
7k views

Snake Game with Swing

I put my code below to ask you for a review and ask you if this can be considered a good and clean code? The game works just fine, I have encountered one issue though - the Food condition to not to ...
2 votes
0 answers
617 views

C++ Snake Object-Oriented

So I've made a snake game with object-oriented approach. I would be glad if you could take a look at the code and give me any advices/tips/point out errors/etc. :) main.cpp: ...
13 votes
1 answer
13k views

Snake Game in Java

I am a self-taught coder, and have been learning Java for the last 2 months. I have recently created a snake game in Java with the help of an online tutorial. I have rearranged the program into ...
5 votes
2 answers
3k views

Snake Game in C# - follow-up

Follow up to this question : Snake Game in C# The game plays like it did in my first question. The design is altered. Gameplay Video Some of the changes: Polymorphism is removed, replaced by ...
8 votes
2 answers
6k views

First small project - Snake in C

We started programming in school this year. I wasn't expecting to learn much but the pace is really slow so I tried to learn some things myself. I decided to do a little project for a start and that ...
4 votes
1 answer
2k views

Snake game in Unity

I've made a simple snake game in Unity and it has 3 different types of foods. Note - 5 blocks = 1 point This is a screenshot from the game here I'm colliding with myself and the game is restarted ...
16 votes
2 answers
2k views

First HTML5 game: Snake

Here's my first HTML5 game: a really simple snake. I've never made a game before and haven't had too much experience with JavaScript. Fiddle ...
2 votes
1 answer
591 views

Refactored game of Snake

A week ago I requested a review of my code for a game of Snake. First game of Snake I made some changes based on your answers and now I want to show you present code. Something else to modify here? ...
2 votes
1 answer
3k views

Simple Snake clone in Java

I made a Snake clone for a programming class. I wanted some feedback regarding coding style and will appreciate any other opinions concerning my code. ...
3 votes
2 answers
3k views

First game of Snake

I'm making baby steps in Java programming and I just ended coding basic game: Snake. Could you share with me what is needed to improve in this code? What about OOP here? GameBoard.java ...
5 votes
1 answer
397 views

Snake game using phaser HTML5 framework

I am a beginner in JavaScript and Phaser and wrote a Snake game. I think there are lot of things I could have done better. I am looking for some advice on how I can improve the design and refactoring ...
5 votes
3 answers
418 views

Snake is dead. Long live snake

This is an iterative review. Previous Iteration My snake now moves and grows and successfully kills itself. Eventually, the game board will handle state and things like the list of fatal coordinates ...
6 votes
1 answer
1k views

Python! (Snake)

This is now an Iterative Review. Next Iteration Nowhere near a full game yet. Just a basic overview and initialisation of a Snake() class. Thoughts? ...
3 votes
1 answer
1k views

Snake in Python Pygame

I just now got around to implementing a full snake game in Pygame. The player can move his snake with the arrow keys and as in the original, the snake continues to move in the direction of the last ...
9 votes
1 answer
3k views

ASCII-based snake game in C++

I have recently finished developing my ASCII based snake game. As a newbie to C++ I would appreciate it if I was given feedback as to how I could improve my code when it comes to efficiency and ...
5 votes
1 answer
535 views

Snake game school project using Pygame

I am making a snake game and I'm almost done but I want to make my code more organized so people can understand so how to do it. ...
2 votes
0 answers
1k views

Online Snake v0.1 with Python-flask and socketio

What I am essentially doing is writing a snake game that everybody could play on the internet, broadcast their game if they like and so on. Now it looks like this, just websocket-based snake, no user ...
15 votes
3 answers
13k views

Full C++ Snake game

I managed to finish my approach on the legendary Snake game. You move around with the WASD keys. I would like to hear your opinion and maybe ideas on how I can improve frame rate because now it sort ...
4 votes
1 answer
139 views

HTML5 Canvas Snake - version 2

...