Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Latest commit

 

History

History
21 lines (20 loc) · 682 Bytes

README.md

File metadata and controls

21 lines (20 loc) · 682 Bytes

Snakegame

You can make Snake game in a simple way. Don't forget to review documentation to use the module. If you have any questions, you can come to the discord server.

Default Config

{
  "snake_head": "🟩",
  "snake_tail": "🟩",
  "background": "🟫",
  "food": "🥝",
  "width": 10,
  "height": 1
}

Example

Node

let SnakeGame = require("@yigitsh/snakegame").default;
SnakeGame = new SnakeGame();
// If you just want to edit certain settings, you can enter the name of the setting you want to edit and do it, you don't need to type the entire config directly there