1.0.0 • Published 5 years ago

snake-game-discordbot v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Installation

  • npm install --save snake-game-discordbot

Usage

let SnakeGame = require("snake-game-discordbot");
Snakegame = new SnakeGame(); // You can use the map functions. (https://developer.mozilla.org/en-us/docs/Web/JavaScript/Reference/Global_Objects/Map)

// Game map size 10 x 10

SnakeGame.createMap("channelID");

// Example steer snake;
SnakeGame.steerSnake("channelID", {
  x: 8, y: 3
});