Metadata-Version: 2.1
Name: two048
Version: 1.0.2
Summary: Simply play connect 4.
Home-page: https://github.com/AiroPi/two048
Author: airo.pi_
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE
Provides-Extra: testing
Requires-Dist: flake8 (>=4.0.1) ; extra == 'testing'
Requires-Dist: tox (>=3.25.0) ; extra == 'testing'
Requires-Dist: pytest (>=7.1.2) ; extra == 'testing'
Requires-Dist: mypy (>=0.950) ; extra == 'testing'
Requires-Dist: autopep8 (>=1.6.0) ; extra == 'testing'

two048 python module
====================

This module provides a backend for the two048 game.

Find its documentation at https://two048.readthedocs.org/en/latest/. Not really useful, the code is simple you can check it directly.

Install it with :
``pip install two048``

Use it with :

.. code-block:: python

    from two048 import Two048

    game = Two048()

    while not game.is_over():
        print(game)
        direction = input("Choose a direction (up/down/right/left): ")
        game.play(direction)

You can easily create an interface using this module. ``game.play()`` return a list of all the tile movements, so you can easily animate them.
