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.
- Host: GitHub
- URL: https://github.com/sdpython/pystrat2048
- Owner: sdpython
- License: mit
- Created: 2019-09-24T18:07:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-23T10:07:26.000Z (over 3 years ago)
- Last Synced: 2025-02-03T07:36:56.489Z (10 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
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