From f09aae33339ef44d722e873013f27781e93d91f7 Mon Sep 17 00:00:00 2001 From: Luka van der Plas <43678097+lukavdplas@users.noreply.github.com> Date: Tue, 19 Dec 2023 16:27:52 +0100 Subject: [PATCH] Update/attribution (#42) --- src/language/Structure and language.jl | 2 ++ src/machine-learning/substitution-ciphers-1.jl | 4 ++-- src/machine-learning/substitution-ciphers-2.jl | 4 ++-- src/pluto_export_configuration.json | 5 +++++ src/{basic => puzzles-games}/Tower of Hanoi.jl | 12 ++++++------ 5 files changed, 17 insertions(+), 10 deletions(-) rename src/{basic => puzzles-games}/Tower of Hanoi.jl (97%) diff --git a/src/language/Structure and language.jl b/src/language/Structure and language.jl index bdc503a..089862d 100644 --- a/src/language/Structure and language.jl +++ b/src/language/Structure and language.jl @@ -6,6 +6,8 @@ #> title = "Structure and language" #> tags = ["language", "natural language processing", "language modelling", "natural language generation", "homework"] #> description = "Automatically detect the language of a piece of text, and generate realistic-looking random text!" +#> license = "MIT / CC BY-SA 4.0" +#> license_url = "https://github.com/mitmath/computational-thinking/blob/Fall23/LICENSE.md" #> #> [[frontmatter.author]] #> name = "MIT Computational Thinking" diff --git a/src/machine-learning/substitution-ciphers-1.jl b/src/machine-learning/substitution-ciphers-1.jl index 5508afe..3776578 100644 --- a/src/machine-learning/substitution-ciphers-1.jl +++ b/src/machine-learning/substitution-ciphers-1.jl @@ -11,8 +11,8 @@ #> description = "Learn about optimisation by solving ceasar ciphers!" #> #> [[frontmatter.author]] -#> name = "Pluto.jl" -#> url = "https://github.com/JuliaPluto" +#> name = "Luka van der Plas" +#> url = "https://github.com/lukavdplas" using Markdown using InteractiveUtils diff --git a/src/machine-learning/substitution-ciphers-2.jl b/src/machine-learning/substitution-ciphers-2.jl index fb17273..e99ca0a 100644 --- a/src/machine-learning/substitution-ciphers-2.jl +++ b/src/machine-learning/substitution-ciphers-2.jl @@ -11,8 +11,8 @@ #> description = "Learn about optimisation by solving substitution ciphers!" #> #> [[frontmatter.author]] -#> name = "Pluto.jl" -#> url = "https://github.com/JuliaPluto" +#> name = "Luka van der Plas" +#> url = "https://github.com/lukavdplas" using Markdown using InteractiveUtils diff --git a/src/pluto_export_configuration.json b/src/pluto_export_configuration.json index 7628f8d..198ab74 100644 --- a/src/pluto_export_configuration.json +++ b/src/pluto_export_configuration.json @@ -29,6 +29,11 @@ "description": "Learn about working with natural language in Julia.", "tags": ["language"] }, + { + "title": "Puzzles & Games", + "description": "Have fun with some recreational programming!", + "tags": ["puzzle", "game"] + }, { "title": "Pluto and the Web", "description": "Pluto is a fantastic tool for connecting Julia to the web! Learn more about using HTML, CSS and JavaScript in Pluto to take your visualization skills to the next level.", diff --git a/src/basic/Tower of Hanoi.jl b/src/puzzles-games/Tower of Hanoi.jl similarity index 97% rename from src/basic/Tower of Hanoi.jl rename to src/puzzles-games/Tower of Hanoi.jl index c3edb15..ffad806 100644 --- a/src/basic/Tower of Hanoi.jl +++ b/src/puzzles-games/Tower of Hanoi.jl @@ -1,16 +1,16 @@ ### A Pluto.jl notebook ### -# v0.19.27 +# v0.19.36 #> [frontmatter] +#> license_url = "https://github.com/JuliaPluto/featured/blob/2a6a9664e5428b37abe4957c1dca0994f4a8b7fd/LICENSES/Unlicense" #> image = "https://upload.wikimedia.org/wikipedia/commons/0/07/Tower_of_Hanoi.jpeg" -#> tags = ["basic", "classic"] +#> tags = ["classic", "puzzle"] #> license = "Unlicense" -#> license_url = "https://github.com/JuliaPluto/featured/blob/2a6a9664e5428b37abe4957c1dca0994f4a8b7fd/LICENSES/Unlicense" #> description = "An interactive Julia puzzle about stacking disks." #> #> [[frontmatter.author]] -#> name = "Pluto.jl" -#> url = "https://github.com/JuliaPluto" +#> name = "Luka van der Plas" +#> url = "https://github.com/lukavdplas" using Markdown using InteractiveUtils @@ -21,7 +21,7 @@ md""" The tower of hanoi is a famous puzzle. -![setup of the tower of a hanoi](https://upload.wikimedia.org/wikipedia/commons/0/07/Tower_of_Hanoi.jpeg) +![setup of the tower of hanoi](https://upload.wikimedia.org/wikipedia/commons/0/07/Tower_of_Hanoi.jpeg) The game consists of three rods with disks stacked on top of them. The puzzle will start with all disks in a stack on one of the rods (like in the picture). The goal is to move all the discs to a single stack on the last rod.