Minesweeper for node.js
JavaScript

README.md

node-minesweeper

a.k.a rö.js

After reading this blog-post, i decided to try and make a minesweeper implementation in node.js, so people can play around with their own bots.

Install

npm install https://github.com/karlwestin/node-minesweeper/tarball/master

Use

var Board = require("minesweeper");
var game = new Board(10, 10, 10); // w, h # of mines

game.render();
game.click(0,1); // zero-based index

//both render and click returns a string representation of the board,
//which can be used for more elaborate rendering