Simple snake realization on js
- Connect the style from the style/snake.css folder.
- Connect the js-script from the js/snake.js folder.
- Place on the page a div-block with id = field
- Initialize the game field
gameField = new Field(field)
onkeydown = function (e) {gameField.onKeyDown(e)}