<commit_before>c2048
=====

c2048 is a [2048](http://saming.fr/p/2048/) game engine with AI, made in C.

c2048 uses bitmaps extensively, and should have a very fast board implementation. The AI algorithm is a simple depth-first search using `score + number_or_free_cells` as a heuristic.

Shell arguments:
----------------

    --human  Play on the console, using hjkl to move around
    --test   Runs the testcases and does a performance test (nodes/sec)
    --ai     Runs infinitly many games in a row, while tracking stats (avg, max, nps, etc.)

If you run it with no arguments, it will be able to talk to [4096](https://github.com/matslindh/4096), a 2048 bot interface made by <NAME>:<commit_msg>Added a paragraph about changin AI_DEPTH etc. in README.md<commit_after>c2048
=====

c2048 is a [2048](http://saming.fr/p/2048/) game engine with AI, made in C.

c2048 uses bitmaps extensively, and should have a very fast board implementation. The AI is a simple depth-first search using `score + number_or_free_cells` as a heuristic.

If you want to change the parameters for the search algorithm, change `AI_DEPTH` and `AI_NUM_TRIES` in `ai.h`.

Shell arguments:
----------------

    --human  Play on the console, using hjkl to move around
    --test   Runs the testcases and does a performance test (nodes/sec)
    --ai     Runs infinitly many games in a row, while tracking stats (avg, max, nps, etc.)

If you run it with no arguments, it will be able to talk to [4096](https://github.com/matslindh/4096), a 2048 bot interface made by <NAME>:
{'fraction_non_alphanumeric': 0.10665804783451842, 'fraction_numerical': 0.04137039431157078, 'mean_word_length': 3.3728813559322033, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6450722', 'n_tokens_mistral': 518, 'n_tokens_neox': 469, 'n_words': 217}