Discord Minesweeper
Create games of minesweeper using Discords Spoiler Tags.
Usage
const mines = ; let output = ;
Parameters
Parameter | Description |
---|---|
X | Width |
Y | Height |
mines | Number of mines |
char | Character to use internally to represent bombs. If formatted == false, this will be used to represent bombs in the output array. |
formatted | Whether to output as a formatted message (with line breaks and emojis) or as a 2D array. |
Example
const Discord = ;const client = ; ... client;