Skip to content

JulianGoeltz/andi_hat_ising

Repository files navigation

Game for Andie's hat

Defense on 11th November 2020

Idea for ISING class:

class ISING:
    get_state():
    update():
    set_params(temperature, field, connection_strength):
    get_params():

Idea of game:

  • lvling up is possible
  • goal is to reproduce given spin combination in the centre
  • starts with task to align one spin, first up then down, then 2, and so on
  • this makes for increasing complexity

Worklflow Badges

Python test Python codestyle

Getting started

Install the packages with pip

pip install .

And run the tests to check if the installation has worked

nosetests

Maintenance manual

Contribution workflow

  1. Identify a task to.
  2. Make local branch to track the changes. Push the changes to a remote branch on GitHub.
  3. For style-consistency use pycodestyle and for linting (e.g. detecting bugs and codesmells) use pylint.
  4. If you think you are ready, make a pull request on GitHub. Github will automatically run the testing worlflows to detect bugs, check style and to run the tests.
  5. If all is green merge the changes on Github and remove the branch you used for development.

To easily check your current change before committing use the pre-commit hook in the root folder. For default checking, use ln -sv ../../.hook_precommit .git/hooks/pre-commit (possibly make it executable with chmod u+x .hook_precommit.

Testing

Testing is done with nosetest. For an example see the existing tests in the tests folder.

The display for the raspi

We use a tft touch-screen for the visualization:

Type 2.4inch SPI Module ILI9341 SKU
Screen TFT touch-screen
color RGB 65K
Resolution 320Wx240H

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published