Hungry Snake

Recommended levellevel
5+
A long serpentine creature slithers across a limited field, obeying the player's orders (moving right, left, down, and up). And there's no way to stop it from moving. Just don't touch the boundaries or you'll die! And don't bite yourself or... well, you get the idea. Along the way, the creature encounters food that makes it even longer. As it grows, it gets more and more cramped... Stop the madness! You probably recognize this comedic storyline from the famous game "Snake". This game originated in the 1970s. That's when it first appeared on arcade machines. In the 21st century, it was popularized by Nokia, which pre-installed Snake on almost all their mobile phones. Between these two milestones, there were versions for the Commodore VIC-20, MS-DOS, ZX Spectrum, Windows, Mac OS… If you go to Google Play or the App Store, you'll probably find a couple dozen different versions of Snake. It's hard to imagine a platform that doesn't have its own version of Snake. Why? On the one hand, it's an interesting game that is perfect for passing the time. On the other hand, Snake is simple enough to create on your own. See for yourself! Use Java to write your own version of this game about the adventures of a growing reptile. On CodeGym, we've already described every step, which will help a novice player handle this task without problems. Carry on!
Comments(43)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Kasia Level 15 , Zabrze, Poland
25 October, 10:54
import com.codegym.engine.cell.*; doesn't want to import in IntelJi. Does anybody have this issue?
Maryem Vickers Level 7 , HT..., United Kingdom
29 October, 20:03
Probably the update thing; it must have something to do with that?!
Kasia Level 15 , Zabrze, Poland
30 October, 06:49
Not sure. I found out that delaying the codygym folder and saving in a new one has helped with it (for some time)
Maryem Vickers Level 7 , HT..., United Kingdom
30 October, 16:35
Oh, it must be then... :/...
Agent Smith Level 27 , Latvia
29 September, 15:22
Another nice little project. 🍎
Maryem Vickers Level 7 , HT..., United Kingdom
29 October, 19:15
Piece of apple :>.
Rich Level 14 , San Diego, United States
16 September, 00:02
hi everyone
Maryem Vickers Level 7 , HT..., United Kingdom
30 October, 16:35
Hi!
Maryem Vickers Level 7 , HT..., United Kingdom
30 October, 16:35
NOOOO I WASTED A TRY JUST BECAUSE I THOUGHT I WAS ON A PREVIOUS ONE!!!!
anton Level 0
25 August, 13:20
hello
Andika A Aziz Level 0
30 June, 01:13
(flashback) Mengenang Hp Nokia tahun lampau
Maryem Vickers Level 7 , HT..., United Kingdom
29 October, 19:15
oH loL.
Santiko Nanda Level 0 , Jakarta
19 June, 12:44
hii
Shivam Level 0
10 August, 04:38
Hello
AGUNG IRAWAN Level 0
18 June, 16:29
what do you mean?
Muhammad NR Hidayatullah Level 0 , Surabaya
18 June, 15:56
snake i do not have ulti
Muhammad Khasan Sandi Level 0 , Surabaya
18 June, 12:25
lumayan menguras tenaga
dwi nugroho Level 0 , Jakarta
12 June, 12:46
hallo guys can you help me to fix my error?
Alvin D Level 3 , Toarushi, Indonesia
12 June, 17:00
up