node-snakegame
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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": 10
}

Example

Node

If you are going to make a discord bot, you can start with this ready-made template.

let SnakeGame = require("node-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

Readme

Keywords

Package Sidebar

Install

npm i node-snakegame

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

16.6 kB

Total Files

13

Last publish

Collaborators

  • yigitsh