-
Repo url: https://github.uio.no/IN1910/H22_project3_mahari.git
-
Author: Maha Riazi ([email protected])
This repo contains code for chaos games and fractals. Code consists of five python files: triangle.py, chaos_game.py, test_chaos_game.py, fern.py and variations.py.
Figues and plots generated by the code can be found under the figures directory. I was able to run every code without any issue and was able to get the tests to pass from both my own Windows machine and from an ifi Linux machine.
Tests can be found for chaos_game.py in test_chaos_game.py. It can be run with following command:
pytest test_chaos_game.py
Coverage report for test below
---------- coverage: platform win32, python 3.10.8-final-0 -----------
Name Stmts Miss Cover Missing
---------------------------------------------
chaos_game.py 103 20 81% 60-62, 89-96, 154-155, 211-226
---------------------------------------------
TOTAL 103 20 81%