<commit_before># how does 2048 work even?

I had a spare few hours and wanted to know how [2048](https://gabrielecirulli.github.io/2048/) worked, so I built it.  (Badly.)

I built it in [Processing](https://processing.org/) because it's easy-peasy to do small things quickly.

------------------------

If for some silly reason you want to play it, here download the executable for your platform:
- [osx](assets/executables/application.macosx.zip)
- [linux32](assets/executables/application.linux32.zip)
- [linux64](assets/executables/application.linux64.zip)
- [windows32](assets/executables/application.windows32.zip)
- [windows64](assets/executables/application.windows64.zip)

You'll need Java 7.

------------------------

It looks like this:

![starting state](assets/start_state.png) ![played state](assets/played_state.png)

And futzing with some magic numbers in the code can make it playable on a much bigger grid:

![big grid](assets/bigger.gif)

(^That's not in the downloadable executables, sorry. Create a GitHub Issue if you want that.)<commit_msg>Fix download links and shrink images<commit_after># how does 2048 work even?

I had a spare few hours and wanted to know how [2048](https://gabrielecirulli.github.io/2048/) worked, so I built it.  (Badly.)

I built it in [Processing](https://processing.org/) because it's easy-peasy to do small things quickly.

------------------------

It looks like this:

<img src="/kdbanman/how_does_2048_work_even/raw/master/assets/start_state.png" alt="start state" style="max-width:425px;">

<img src="/kdbanman/how_does_2048_work_even/raw/master/assets/played_state.png" alt="played state" style="max-width:425px;">

And futzing with some magic numbers in the code can make it playable on a much bigger grid:

![big grid](assets/bigger.gif)

(^That's not in the downloadable executables, sorry. Create a GitHub Issue if you want that.)

------------------------

If for some silly reason you want to play it, here download the executable for your platform:
- [osx](https://github.com/kdbanman/how_does_2048_work_even/raw/master/assets/executables/application.macosx.zip)
- [linux32](https://github.com/kdbanman/how_does_2048_work_even/raw/master/assets/executables/application.linux32.zip)
- [linux64](https://github.com/kdbanman/how_does_2048_work_even/raw/master/assets/executables/application.linux64.zip)
- [windows32](https://github.com/kdbanman/how_does_2048_work_even/raw/master/assets/executables/application.windows32.zip)
- [windows64](https://github.com/kdbanman/how_does_2048_work_even/raw/master/assets/executables/application.windows64.zip)

You'll need Java 7.

{'fraction_non_alphanumeric': 0.14937286202964653, 'fraction_numerical': 0.034967692892436335, 'mean_word_length': 4.201581027667984, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '580519', 'n_tokens_mistral': 896, 'n_tokens_neox': 836, 'n_words': 222}