Project 0 (prog1) Hanoi/Penrose
To properly run the scripts, you will need:
- the latest version of OCaml
- the latest version of the R language
Run the basic hanoi script (hanoi/hanoi_r.ml
) with:
cd hanoi
./run_hanoi_r.sh <number_of_discs>
This will solve the problem for 1 to <number_of_discs> discs and generate a graph
in the PDF format that is copied to hanoi/pdf/times.pdf
.
You can also run the extended script (hanoi/hanoi_ext.ml
) with:
cd hanoi
./run_hanoi_ext.sh <number_of_discs>
This will solve the problem for <number_of_discs> discs and display an animated solution to help the user.
Run the basic penrose tesselation (contained in penrose/penrose.base.ml
) with:
cd penrose
./run_penrose <generation_number>
But one can also run a version in which there is no line drawed 2 times with:
./run_penrose_noDoubleLine.sh <generation_number>
There ! Is the Ultimate version where you can move around:
./run_penrose_anime.sh
Use: z
q
s
d
to move, a
to zoom, w
to draw the next generation and e
to exit
Note: This one does not need a number as argument
Global Note: be sure to be in the directory before running the script as they have no awareness of where they are launched from.