---
title: "Discussion on \"Building Snake Game In Golang: Complete Guide\" | Hashnode"
description: "Discussion on \"Building Snake Game In Golang: Complete Guide\". Learn Golang By Building A Snake Game: A Complete Guide"
url: "https://hashnode.com/posts/building-snake-game-in-golang-complete-guide/6464fb35ba772d0822c875b8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building Snake Game In Golang: Complete Guide](https://programmingeeksclub.com/building-snake-game-in-golang-complete-guide?utm_source=hashnode&utm_medium=feed)

Learn Golang By Building A Snake Game: A Complete Guide

May 17, 2023 · 6 min read · programmingeeksclub.com  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#game-development](https://hashnode.com/tag/game-development)
-   [#golang](https://hashnode.com/tag/golang)

## Written by

[Kuldeep Singh](https://hashnode.com/@kusingh)

@kusingh · New Delhi, INDIA

  
[View profile](https://hashnode.com/@kusingh)

A Developer, Blogger, In mean time A Gamer

Backend Lead Developer at CBNITS INDIA PRIVATE LIMITED, EX employee of tutree.in and Binmile technologies, started blogging as hobby now I'm enjoying this, in mean time I play online games as well it's a rare thing but i do.

## Responses 2

Markdown supported · ⌘↵ to post

[Kirill Semenchenko](https://hashnode.com/@smoreg)

[May 19, 2023](https://hashnode.com/posts/building-snake-game-in-golang-complete-guide/6464fb35ba772d0822c875b8/comment/646734757bd6d2e2dc8735ac)

Hi! Some little unsolicited code review from me)

1.  Current ebiten also needs Layout meth to be implemented and some func deprecated. Maybe you should add specific version, that you used for this game :shrug:
2.  Change direction before g.updateCounter check will make snake control more smooth
3.  Duplicate code at g.score++ section. Looks like it there was food that can increase snake length for > 1 tiles, but code wasnt removed
4.  g.speed was setted to 10 inside and outside restart func. Maybe it should be setted only inside restart func?

Anyway, nice game example! I like it! Thx :D

[Kuldeep Singh](https://hashnode.com/@kusingh)

[May 19, 2023](https://hashnode.com/posts/building-snake-game-in-golang-complete-guide/6464fb35ba772d0822c875b8/comment/646734757bd6d2e2dc8735ac#reply-64674d50eb43c7e4ebd01251)

Yes [Kirill Semenchenko](https://hashnode.com/@smoreg) layout needs to be implemented sorry I didn't included that in the code but you can find it in here: [github.com/mavensingh/mavensingh.github.io/blob/m…](https://github.com/mavensingh/mavensingh.github.io/blob/main/Go/Game/Snake%20Game/main.go)

also thanks for suggesting the improvement

[Sanjay Ojha](https://hashnode.com/@sanjayojha)

[May 17, 2023](https://hashnode.com/posts/building-snake-game-in-golang-complete-guide/6464fb35ba772d0822c875b8/comment/64651f41535ccee0c01cf988)

Awesome, Go dev has bright future
