<commit_before># tetris.js
JavaScript clone of popular tetris game

### Building

For building this project you will need NodeJS and Gulp.

Check that you have NodeJS 16.x installed on your system 
(Gulp is quite slow to add support for newer NodeJS versions, 
so make sure that you use exactly 16.x):
```
$ node --version
v16.0.0

$ npm --version
7.10.0
```

Install Gulp if you don't have it yet:
```
$ npm install --global gulp-cli
$ cd tetris.js
$ gulp --version
CLI version: 2.3.0
Local version: 4.0.2
```

Build and start the application:
```
$ npm install
$ gulp clean serve
```
Enjoy! :tada:

To create release build run:
```
RELEASE=1 gulp clean build test
```

For debug build (with source map, non minimized JS) just unset `RELEASE` variable:
```
RELEASE= gulp clean build test
```

### Gameplay

![tetris gameplay](doc/screen_a.png)
<commit_msg>README polishing<commit_after># tetris.js
JavaScript clone of popular tetris game

### Building

NodeJS 16.x and Gulp are required to build this application
(Gulp is quite slow to add support for newer NodeJS versions, 
so please make sure that you use exactly 16.x):
```
$ node --version
v16.0.0

$ npm --version
7.10.0
```

Install Gulp if you don't have it installed yet:
```
$ npm install --global gulp-cli
$ cd tetris.js
$ gulp --version
CLI version: 2.3.0
Local version: 4.0.2
```

Build and start the game:
```
$ npm install
$ gulp clean serve
```
Enjoy! :tada:

To create release build (optimized for deployment) run:
```
$ RELEASE=1 gulp clean build test
```

For debug build (with source maps, non minimized JS) just unset `RELEASE` variable:
```
$ RELEASE= gulp clean build test
```

### Gameplay

![tetris gameplay](doc/screen_a.png)

{'fraction_non_alphanumeric': 0.11567821491485614, 'fraction_numerical': 0.022313564298297124, 'mean_word_length': 3.953488372093023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1806993', 'n_tokens_mistral': 617, 'n_tokens_neox': 553, 'n_words': 234}