Snake in JavaScript

The genre of video games that includes various Snake games originated with the 1976 arcade game Blockade, which introduced the gameplay mechanic with increasingly longer solid trails.

The genre of video games that includes various Snake games originated with the arcade game Blockade of 1976, which introduced the gameplay mechanic with increasingly longer solid trails. In particular, its second sequel, Hustle (1977), introduced single-player gameplay and collectible objectives to earn points[2]. The first version designed for home computers, called Worm, was developed in 1979 by F. Seger (Germany) on the TRS-80 computer, followed by a version for the Commodore VIC-20. A version of Blockade called Hustler was then developed by the Milton Bradley Company for the TI-99/4A in 1980[3]. Among the most notable versions of Snake are, in addition to the one developed by Nokia, the one from Neopets, called Meerca Chase, and the one included with the QBasic language present in some versions of MS-DOS, called Nibbles. ecco il codice javascript per programmare snake https://js.do/mpalladino/snake