https://github.com/shybyte/boulder-fall
Alternative refactoring of the game in https://www.manning.com/books/five-lines-of-code.
https://github.com/shybyte/boulder-fall
Last synced: about 1 month ago
JSON representation
Alternative refactoring of the game in https://www.manning.com/books/five-lines-of-code.
- Host: GitHub
- URL: https://github.com/shybyte/boulder-fall
- Owner: shybyte
- Created: 2021-05-21T20:41:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-22T23:00:32.000Z (about 5 years ago)
- Last Synced: 2025-01-03T20:28:00.635Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Boulder Fall - Game
The code of this game is an alternative refactoring of the game in https://www.manning.com/books/five-lines-of-code.
The original code can be found here: https://github.com/thedrlambda/five-lines/blob/main/index.ts.
This refactoring is proposed in the book: https://github.com/thedrlambda/five-lines/blob/solution/index.ts.
Please compare this code with my [solution](./src).
## Install dev dependencies
```
npm install
```
## Compile
```
npm run build
```
## Run
```
npx serve .
```
# Develop with live reload
```
npm run tsc:watch
```
```
npm run browser-sync
```