Hungry Snake

Niveau recommandéniveau
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!
Commentaires (114)
  • Populaires
  • Nouveau
  • Anciennes
Tu dois être connecté(e) pour laisser un commentaire
Shivam yadav Android Developer
2 avril, 06:47
package com.codegym.games.snake; import com.codegym.engine.cell.*; public class SnakeGame extends Game { public static final int WIDTH = 15; public static final int HEIGHT = 15; @Override public void initialize() { setScreenSize(WIDTH, HEIGHT); } }
Guest
, India
2 avril, 06:19
i love you arti
Anonymous #11623460
niveau Friedrichshafen, Friedrichshafen, Germany
12 février, 08:55
😮
Anonymous #11623460
niveau Friedrichshafen, Friedrichshafen, Germany
12 février, 08:54
😎
Anonymous #11606130
niveau Heidelberg, Heidelberg, Germany
20 décembre 2024, 08:48
O, du Fröhliche!
Anonymous #11606130
niveau Heidelberg, Heidelberg, Germany
20 décembre 2024, 08:49
bester mann
Morel
, France
13 juillet 2024, 16:44
tete de neuille frrrrrrrrr
Anonymous #11516985
niveau -, -, France
16 mai 2024, 09:28
thanks
14 avril 2024, 09:14
🖕
14 avril 2024, 09:06
Fuck you
Anonymous #11594043
niveau San Antonio, San Antonio, United States
15 novembre 2024, 16:12
you tell em
Fohli
niveau Germany, Germany, Germany
6 mars 2024, 10:11
Dauernd 'falsch' weil Rechtschreibung verkehrt xD Und ich noch was aber die Methode hab ich doch 🤣