An open API service indexing awesome lists of open source software.

https://github.com/sdpython/pystrat2048

Implements a dummy strategy for the game 2048.
https://github.com/sdpython/pystrat2048

Last synced: 8 months ago
JSON representation

Implements a dummy strategy for the game 2048.

Awesome Lists containing this project

README

          

.. image:: https://circleci.com/gh/sdpython/pystrat2048/tree/master.svg?style=svg
:target: https://circleci.com/gh/sdpython/pystrat2048/tree/master

pystrat2048
===========

.. image:: https://raw.githubusercontent.com/sdpython/pystrat2048/master/doc/_static/logo.png
:width: 50

Simple template to package a strategy for the 2048 game. Material for teaching
`ensae_teaching_cs `_.
It implements basic CI and documentation. One example of use:
`strat2048.py
`_.

Generate the setup in subfolder ``dist``:

::

python setup.py sdist

Generate the documentation in folder ``dist/html``:

::

python -m sphinx -T -b html doc dist/html

Run the unit tests:

::

python -m unittest discover tests

Or:

::

python -m pytest

To check style:

::

python -m flake8 pystrat2048 tests examples