Skip to content

namuol/minetweeter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A twitter bot that generates MineSweeper games and accepts commands via @mentions.

Key

ABCDEFGHI
.........J
11..111..K
=2..1^1..L
=2..111..M
=1111....N
===^31...O
====^1...P
====22232Q
====^1^^^R

. REVEALED BLANK/EMPTY SPACE
= NON-REVEALED SPACE
^ FLAGGED SPACE

Command Syntax

<action> <x> <y>

Available actions:
- click
- flag
- unflag

Example actions:
click A J
flag E K

Why would you make this?

Stares off into the distance, smiling manically.

Huh?

Game Logic

If you're looking for some example code for generating, rendering, and evaluating the state of minesweeper boards, check out these files:

  • src/createBoard.js
  • src/gameStateToString.js
  • src/MinesweeperGame.js

Analytics

About

Play MineSweeper on Twitter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published