Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rumpl/kata-minesweeper
https://github.com/rumpl/kata-minesweeper
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rumpl/kata-minesweeper
- Owner: rumpl
- Created: 2016-03-08T17:05:59.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-11T12:53:23.000Z (almost 9 years ago)
- Last Synced: 2024-11-25T01:24:38.904Z (3 months ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kata-minesweeper
The goal here is to implement a typescript implementation of the [Minesweeper game](https://birrell.org/andrew/minesweeper/)
## Goal
You should write a program that, given an arbitrary field with mines, outputs the field where each empty space contains the number of mines it is adjacent to.
For example, for a given field:
```
*...
....
.*..
....
```The program should output:
```
*100
2210
1*10
1110
```## Prerequisites
You need typescript and tsd installed:
npm install typescript -g
npm install tsd -g## Running the example
npm i
gulpGulp will start watching changes to your code and execute the unit tests automatically.
Enjoy.