Coding Challenge #57 - Snake

Coding Challenge #57 - Snake

This challenge is to build your own version of the classic game snake.

Many of us think of snake as one of the first games that was available on a mobile phone (it appeared on the Nokia 6110 in 1997). But snake goes back much further than that. It’s heritage dates back to 1976, with the first version of what was then called Worm written in 1978.

These days there are thousands of versions and it’s available for just about any device you care to try.

Ad: Do You Need Help Learning To Code or Becoming a Backend Developer?

I’ve had a number of request for tutorials on learning Python, JavaScript or Go. I don’t have anything myself so I’ve partnered with boot.dev who teach you to become a backend developer using Python, JavaScript and Go.

If you use the code JOHNCRICKETT you’ll also get 25% off your first payment. It’s an affiliate link so you’ll also be supporting Coding Challenges if you sign up for boot.dev .

The Challenge - Building Snake

Snake is a simple game. The player controls a snake which move around the playing grid at a fixed speed. The goal is to eat food that appears at random locations on the grid.

For each item of food eaten the snake becomes longer and the player scores points. The game ends when the snake hits the edge of the game grid or it’s own body.

Step Zero

In this step, pick the programming language and development environment you’re going to use. Consider trying something different - this would be a great project to try a frontend stack if you’re a backend developer and vice versa.

If you’re from a data engineering or site-reliability engineering background you could leverage your knowledge of Python with PyGame or Go with Ebitenegine. Rustaceans can check out?are we game yet ?for useful crates.

Snake is relatively simple and as such, it’s a great platform for learning a new technology, or programming language.

Continued...

The steps for the rest of this Coding Challenge are detailed on the website as Build Your Own Snake Game .

Afika Mncedane

Postgraduate student at University of the Witwatersrand|Wits Business School-(PDM-Business Administration) |Aspiring Analyst

7 个月

I'm a beginner developer, any tips on how to get going? I'd appreciate your help

Dheeraj Khandare

Founder & CEO @ Coderfarm | ?? We help agency & startup hiring challenges with on-demand test-driven developers ??, ensuring robust software & freeing time for more client acquisition ??

7 个月

Building a Snake game is a great place to start, especially for those familiar with the fundamentals. It allows you to practice core concepts like user input handling, game loop management, and collision detection. John Crickett

Elliot One

Entrepreneur | Founder at XANT | AI/ML Engineer | Full Stack Engineer at AITIS

7 个月

I like this challenge. Thanks for sharing, John Crickett

Rishu Gupta

Cure.fit | ex-Amazon | Java Developer | Redis | MongoDB | Node.Js | Typescript

7 个月

Great share. Have started hands-on with some of the projects. Building these on spare time is great fun. Have started building the LoadBalancer of own. Here is the first video on that https://youtu.be/0yxxdHE_PO4?si=rNPXzJ4sdRciPYM_

Mayur Sonowal

Senior R&D Engineer | IIT Kanpur '21

7 个月

Snake game in C++? Lets try it ??

要查看或添加评论,请登录

John Crickett的更多文章

  • Coding Challenge #78 - Uptime Monitoring Service

    Coding Challenge #78 - Uptime Monitoring Service

    This challenge is to build your own uptime monitoring service. There are many such services and if you work for a…

    7 条评论
  • From The Challenges - Grep

    From The Challenges - Grep

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges newsletter I’m sharing some of the common…

    6 条评论
  • Coding Challenge #77 - Build Your Own Static Site Generator

    Coding Challenge #77 - Build Your Own Static Site Generator

    Coding Challenge #77 - Build Your Own Static Site Generator This challenge is to build your own static site generator…

    11 条评论
  • From The Challenges - Redis

    From The Challenges - Redis

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges newsletter I’m sharing some of the common…

    25 条评论
  • Coding Challenge #76 - Build Your Own Video Chat Application

    Coding Challenge #76 - Build Your Own Video Chat Application

    This challenge is to build your own Video Chat application. Video chat applications have been a driver of the public’s…

    17 条评论
  • From The Challenges - Calculator

    From The Challenges - Calculator

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges newsletter I’m sharing some of the common…

    14 条评论
  • Coding Challenge #75 - Duplicate File Finder

    Coding Challenge #75 - Duplicate File Finder

    This challenge is to build your own version of a file deduplication tool. These tools are useful for finding duplicate…

    5 条评论
  • From The Challenges - Sort

    From The Challenges - Sort

    Welcome To Coding Challenges - From The Challenges! In this Coding Challenges newsletter I’m sharing some of the common…

    15 条评论
  • Coding Challenge #74 - Asteroids

    Coding Challenge #74 - Asteroids

    This challenge is to build your own version of the classic arcade game Asteroids. Asteroids, which was was first…

    7 条评论
  • From The Challenges - Load Balancer

    From The Challenges - Load Balancer

    In this Coding Challenges newsletter I’m sharing some of the common mistakes I see software engineers make when…

    19 条评论

社区洞察

其他会员也浏览了