Source

shlomi-fish-homepage / lib / Shlomif / Homepage / SectionMenu / Sects / Puzzles.pm

package Shlomif::Homepage::SectionMenu::Sects::Puzzles;

use strict;
use warnings;

use utf8;

use MyNavData;

my $puzzles_tree_contents =
{
    host => "t2",
    text => "Shlomi Fish’s Puzzles",
    title => "Shlomi Fish’s Puzzles",
    show_always => 1,
    subs =>
    [
        {
            text => "Puzzles",
            url => "puzzles/",
            title => "Puzzles and Riddles",
        },
        {
            text => "Math-Ventures",
            url => "MathVentures/",
            title => "Adventures in Mathematics, usually with some real-life application",
            subs =>
            [
                {
                    text => "Combinatorics and the Art of D&D",
                    url => "MathVentures/3d-outof-4d-mathml.xhtml",
                    title => "The 3 Maximal Dice out of 4 Dice",
                },
                {
                    text => "On and on it Seems to go",
                    url => "MathVentures/repeating_code.html",
                    title => "How many Combinations are for a Repeating Code",
                },
                {
                    text => "Dodecahedron Volume",
                    url => "MathVentures/dodeca.html",
                },
                {
                    text => "A Solidarian Disco Circle",
                    url => "MathVentures/disco_circle.html",
                },
                {
                    text => "Toggling Squares is not that Trivial",
                    url => "MathVentures/toggle_squares.html",
                    subs =>
                    [
                        {
                            text => "The Toggle Squares Game",
                            url => "MathVentures/toggle-squares/",
                        },
                        {
                            text => "Mathematical Analysis",
                            url => "toggle.html",
                        }
                    ],
                },
                {
                    text => "Bugs in a Square",
                    url => "MathVentures/bugs-in-square-mathml.xhtml",
                },
                {
                    text => "What is this Sequence?",
                    url => "MathVentures/sequence-4-8-7-5.html",
                },
                {
                    text => "Two Gates and Two Angels - with a Twist",
                    url => "MathVentures/two-angels-and-two-gates.html",
                },
            ],
        },
        {
            text => "Logic Puzzles",
            url => "puzzles/logic/",
            title => "Various Logic Puzzles I came up with.",
            subs =>
            [
                {
                    text => "Between the Screws",
                    url => "puzzles/logic/between-the-screws/",
                    title => "Which are the 4 different Screws Used to build an Aeroplane?",
                },
                {
                    text => "Ravensborg’s Guild",
                    url => "puzzles/logic/ravensborgs-guild/",
                    title => "5 members of a guild with different profession, one of them is the leader.",
                },
                {
                    text => "On the Tip of the Sword",
                    url => "puzzles/logic/tip-of-the-sword/",
                    title => "5 swords of different types. Which is which?",
                },
            ],
        },
        {
            text => "Situation Puzzles",
            url => "puzzles/situation/",
            title => "Puzzles where one has to guess what caused the situation using Yes/No questions",
            subs =>
            [
                {
                    text => "A Book Under a Rock",
                    url => "puzzles/situation/book-under-rock.html",
                },
            ],
        },
        {
            text => "Maths",
            url => "puzzles/maths/",
            subs =>
            [
                {
                    text => "Modulo 5^n Riddle",
                    url => "puzzles/maths/n5-riddle/",
                },
            ],
        },
        {
            text => "Computer Science",
            url => "puzzles/cs/",
            subs =>
            [
                {
                    text => "The “Lotg” Code",
                    url => "puzzles/cs/lotg/",
                    title => "A minimalistic programming language that I came up with",
                },
            ],
        },
    ],
};

sub get_params
{
    return
        (
            hosts => MyNavData::get_hosts(),
            tree_contents => $puzzles_tree_contents,
        );
}

1;