Hungry Snake

Recommended levellevel
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 (136)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Anonymous #11264260
Level 0 , India
20 January, 04:18
hai im kishan kumar im so like games
Level 1 , Turkey
20 January, 01:09
Hiyo Full Stack Developer
12 January, 06:30
Pretty straightforward. Also good way to farm "dark matter" points without subscribing.
Aakeria Tambers
Level 1 , United States
26 December 2022, 20:47
Aakeria Tambers
Level 1 , United States
26 December 2022, 20:46
Anonymous #11220188
Level 2 , CodeGym University in India, India
17 December 2022, 12:17
its good but i think it needs more than it is right now
christian prelow
Level 1 , United States
24 November 2022, 16:01
it good it good
15 October 2022, 19:14
This is like another version of my game, although mine was done on scratch and named the hungry snake not hungry snake
15 October 2022, 19:12
Xavier Full Stack Developer at X-legend
25 September 2022, 04:33
Why I can't publish my game?????
John Squirrels Website Admin at CodeGym
26 September 2022, 11:00
Please refer to the Help section with your code attached.