Skip to content

Project 0 (prog1) Hanoi/Penrose

License

Notifications You must be signed in to change notification settings

redmie/L3_prog1_projet0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

L3_prog1_projet0

Project 0 (prog1) Hanoi/Penrose

Requirements

To properly run the scripts, you will need:

  • the latest version of OCaml
  • the latest version of the R language

Hanoi Towers

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.

Penrose Tessellation

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.

About

Project 0 (prog1) Hanoi/Penrose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published