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 (127)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Xavier Full Stack Developer at X-legend
25 September, 04:33
Why I can't publish my game?????
John Squirrels Website Admin at CodeGym
26 September, 11:00
Please refer to the Help section with your code attached.
Kayceon Grant
Level 1 , United States
4 July, 22:52
where can i find color . darkseagreen class aack
Bennett
Level 0 , China
19 June, 12:12
where can find Color.DARKSEAGREEN class.
YOEL
Level 1 , United States
15 June, 21:39
i like
Alejandro Nevarez-Celis
Level 1 , United States
10 June, 18:41
its preetty good
Lakorie Keene
Level 1 , United States
2 June, 03:28
how can i play it bc i can't play it 😭
John Squirrels Website Admin at CodeGym
3 June, 15:26
You need to actually make the game first, then publish it and play it. Otherwise, you can look at the list of published games from other users and play one of their creations.
Anonymous #10995114
Level 1 , United States
31 May, 14:44
i love codeineg <3
Sohan Prabhudesai
Level 0 , United States
2 June, 14:47
Codeineg got me tripping! ⌨️ 🤪
Forever Jones
Level 1 , United States
26 May, 23:22
coooooool
Alex
Level 1 , United States
21 May, 17:34
this is a rip off of snake game
Laurynn
Level 1 , United States
13 May, 12:19
hi😜