On June 1, 2016, Wild Noodle introduced its summer competition. This competition consisted of 25 levels, with increasing complexity, using Herbert and the “H” language.   Herbert’s “H” language has three statements: l (left) r (right) and s (straight) and they are arranged using procedures and parameters to achieve the desired goal of solving the puzzle in the most efficient manner; otherwise known as optimization .
Though the goal of the competition seemed pretty straightforward, I was left thinking about the objectives of the game. I pondered about various options for developing a square. For example, to create a simple box, I could program Herbert, using the following order of statements:

SQUARE 1
ssrssrssrss

This program would take approximately 11 Bytes to complete and if I wanted a bigger square that this would add to the number of Bytes required.  Thus, if my desired goal was to make a square as efficient as possible, well this was not the answer, but in contrast, it was a fairly easy to program.  But if my goal was to create square with the least amount of Bytes then I would possibly use the following program to achieve my goal:

SQUARE 2
a:ssra
a

In the program above, I am using a technique called recursion .  I am asking Herbert to do the side of the square along with a turn to call itself indefinitely.  This program took only 6 bytes.  Yet again, if I wanted to make my square 5 or 10 times larger, well this would take additional bytes, again challenging the goal of efficiency.

SQUARE 3
a(A):sa(A-1)
b(A):a(A)rb(A)
b(2)

Though this program took 15 Bytes, it would eventually be more efficient than the previous program if I wanted a box larger than 11 s (statements).  This program allows me to program the number of steps forward Herbert should go for each side of the square.
Yet Herbert has so many options to solve the puzzle of the square.  Here are just a few ways to draw a square of size 10:

SQUARE 4
a(A):sa(A-1)
a(10)ra(10)ra(10)ra(10)

SQUARE 5
a(A):sa(A-1)
b:a(10)r
bbbb

SQUARE 6
a(A):sa(A-1)
b:a(10)rb
b

SQUARE 7
a(A):sa(A-1)
b(B):a(10)rb(B-1)
b(4)

SQUARE 8
a(A):sa(A-1)
b(B,C):a(C)rb(B-1,C)
b(4,10)

As I explored the myriad square creating options, I realized the beauty of Herbert.  Though the Herbert competition primary objective was to solve the given problems in the most efficient manner, the Herbert program had the ability to teach me how to think about variability of options to solve one problem and that learning the different options, allowed me to understand the complexities of problem solving.  It also allowed me to expand my ability to think outside the box.  What if I wanted to take my box and give it fancy corners or make many boxes? The more options, I created, the wider my scope to find solutions.  Look at my designs below:

Box with Fancy Corners
a(A):sa(A-1)
d(D):sld(D-1)
b(B,C,E):a(C)rd(E)srb(B-1,C,E)
b(4,10,3)

Many Boxes with Fancy Corners
a(A):sa(A-1)
d(D):sld(D-1)
b(B,C,E):a(C)rd(E)srb(B-1,C,E)
f:b(4,5,3)rsssf
f

Ultimately, Herbert and its “H” language, not only allowed me to think about the complexities of problem solving, but it also allowed me to explore the art of computer programming, the art to develop and design…Hello World!

 

View User Profile for Soraya Cardenas Dr. Soraya Cardenas holds a doctorate in Sociology and is the President of Wild Noodle.
Posted by Soraya Cardenas Monday, June 6, 2016 5:28:00 PM Categories: computer programming tips and tricks

Comments

Tuesday, December 6, 2016 3:49:37 AM

re: The Story about a Box: Programming the Perfect Square?

Louis Vuitton handbags Fashion Week this season unknowingly been concluded, both from the T station off the show floor or shot in the street are filled with a variety of trendy new singleChanel handbags product,The good news the Consul General’s wife got theRolex Air King back.The LAPD obtained a search warrant for the info that will lead them to the person who brought the 1:1 Replica Breitling Watches in for repair.The fraudster had been selling phoney Original Rolex Watches and Omega Watches Replica before officers swooped on his home. Replica Tag Heuer is the most famous luxury watch brand all over the world.

 

Louis Vuitton handbags

Rolex Air King

1:1 Replica Breitling Watches

Chanel handbags

Original Rolex Watches

Omega Watches Replica

Replica Tag Heuer

 

Thursday, August 24, 2017 8:14:54 AM
20170824 yueqin
View User Profile for 20170824 yueqin
Friday, January 26, 2018 4:23:18 AM

re: The Story about a Box: Programming the Perfect Square?

michael kors handbags clearance

canada goose jackets

uggs outlet

fred perry polo

coach factory outlet

fitflop sale

michael kors outlet

pandora bracelet

ugg boots

prada outlet

true religion outlet

canada goose jackets

canada goose jackets

coach outlet online

ray ban pas cher

coach factory outlet

michael kors outlet online

ugg outlet

polo ralph lauren

coach outlet

ugg boots

christian louboutin outlet

polo ralph lauren

ugg boots

mulberry bags

nfl jerseys

coach outlet

polo outlet

michael kors outlet

asics outlet

yeezy shoes

ugg outlet

canada goose

pandora charms

pandora outlet

canada goose outlet

michael kors outlet

adidas shoes for women

christian louboutin sale

ugg boots

clarks outlet

canada goose outlet

michael kors outlet

polo outlet

ugg boots clearance

ugg outlet

canada goose outlet store

pandora outlet

uggs outlet

canada goose uk

cheap nba jersey

michael kors outlet online

ugg outlet

christian louboutin

michael kors outlet

valentino outlet

polo ralph lauren

canada goose

nfl jerseys wholesale

ugg boots clearance

canada goose outlet

kate spade handbags

michael kors outlet

canada goose outlet

uggs outlet

polo outlet stores

nike factory outlet

ray ban outlet

canada goose outlet online

canada goose

uggs outlet

ray bans

ugg outlet store

mont blanc pens

ralph lauren

polo ralph lauren

michael kors outlet store

canada goose jackets

ugg canada

polo ralph lauren

cheap oakley sunglasses

canada goose outlet

hermes outlet

polo ralph lauren

ray ban outlet

coach outlet online

canada goose outlet

oakley sunglasses wholesale

michael kors outlet

uggs outlet

pandora charms

air jordan 4

michael kors outlet

nike shoes for men

nike trainers

oakley sunglasses

coach outlet online

true religion jeans

fitflops sale clearance

canada goose outlet online

adidas outlet

ugg boots clearance

pandora charms

kate spade handbags

polo ralph lauren outlet

canada goose

nba jersey

mlb jerseys wholesale

polo ralph lauren outlet

nfl jerseys

mont blanc outlet

ralph lauren outlet

nfl jerseys

canada goose

canada goose outlet

hermes birkin

asics shoes

nhl jerseys

mont blanc outlet

nfl jerseys wholesale

michael kors outlet

ugg outlet online clearance

coach outlet store online

michael kors outlet clearance

polo shirts

canada goose

christian louboutin outlet

pandora charms

adidas yeezy shoes

coach factory outlet

mcm backpack

nike air max

canada goose outlet store

polo outlet

michael kors outlet clearance

michael kors outlet

ugg boots

cheap mlb jerseys

mbt shoes clearance outlet

michael kors outlet clearance

ferragamo outlet store

air jordan shoes

nike outlet online

ralph lauren shirts

fitflops sale

ugg boots clearance

michael kors outlet

christian louboutin sale

ugg boots clearance

lacoste shirts

true religion outlet online

ray ban sunglasse

michael kors outlet online

ugg outlet

ugg outlet

coach outlet online coach factory outlet

nike outlet store

ralph lauren uk

ugg outlet online

michael kors outlet online

michael kors outlet clearance

michael kors outlet

mulberry bags

ugg outlet

canada goose outlet store

canada goose jackets

pandora jewelry

moncler coats

coach outlet online

pandora jewelry outlet

polo ralph lauren factory store

michael kors outlet

michael kors outlet online

coach factory outlet

yeezy boost

ugg boots clearance

cheap jordans for sale

pandora outlet

ray ban sunglasse

mlb jerseys wholesale

uggs outlet

cheap oakley sunglasses

michael kors outlet online store

fred perry shirts

michael kors outlet

kate spade outlet

ray ban sunglasses

cheap ugg boots

michael kors outlet

yeezy boost

cheap nfl jerseys

ugg boots

cheap mlb jerseys

michael kors outlet

longchamp bags

lunette ray ban

canada goose outlet

ralph lauren uk

ugg outlet

nike outlet

yaoxuemei20180126

Sunday, February 25, 2018 7:09:10 AM

The Story about a Box: Programming the Perfect Square?

[url=http://koffee-express.com]koffee express[/url]
[url=http://superiorcappuccinomix.com]superior cappuccino mix[/url]
[url=http://douweegbertsliquidcoffee.com]douwe egberts liquid coffee[/url]

Wednesday, March 28, 2018 6:49:26 AM
kakakaoo
View User Profile for kakakaoo

re: The Story about a Box: Programming the Perfect Square?

coach factorty outlet

 

ralph lauren outlet

 

prada outlet

 

hermes handbags

 

supreme clothing

 

ray ban sunglasses

 

moncler

 

nmd adidas

 

fitflops

 

coach outlet store

 

coach factory outlet

 

adidas yeezy boost

 

canada goose

 

birkenstock

 

coach outlet

 

adidas superstar

 

replica watches

 

mcm outlet

 

cheap ray ban sunglasses

 

pandora jewelry official site

 

coach outlet store

 

ugg boots

 

cheap oakley sunglasses

 

canada goose outlet

 

mulberry handbags

 

coach outlet

 

cheap jordans

 

fitflops sale clearance

 

kate spade outlet store

 

rolex watches

 

nike air max

 

coach outlet

 

uggs

 

converse outlet store

 

michael kors handbags

 

adidas shoes

 

canada goose outlet

 

ugg australia

 

ugg boots

 

polo ralph lauren outlet online

 

moncler jackets

 

yeezy boost

 

canada goose jackets

 

asics shoes

 

canada goose sale

 

coach outlet

 

air jordans

 

polo ralph lauren

 

prada handbags

 

louis vuitton outlet

 

moncler jackets

 

cheap uggs

 

yeezy boost

 

nike shoes for men

 

philipp plein outlet

 

adidas originals

 

mcm handbags

 

cheap jordans

 

michael kors handbags

 

puma shoes

 

adidas nmd

 

michael kors uk

 

ferragamo outlet

 

polo ralph lauren outlet

 

adidas

 

cheap nfl jerseys

 

ralph lauren

 

canada goose outlet

 

yeezy boost 350

 

canada goose uk

 

coach outlet online

 

hermes birkin

 

coach factory outlet

 

michael kors handbags

 

longchamp handbags

 

canada goose outlet

 

pandora charms

 

ugg boots

 

skechers shoes

 

timberland outlet

 

nike air max

 

coach outlet

 

ugg boots

 

pandora charms uk

 

oakley sunglasses

 

uggs outlet

 

salvatore ferragamo shoes

 

ralph lauren

 

ugg outlet

 

red bottom shoes

 

ralph lauren outlet

 

converse shoes

 

jordans

 

pandora jewelry

 

jordan shoes

 

christian louboutin outlet

 

yeezy boost

 

tory burch outlet online

 

louis vuitton outlet online

 

ralph lauren sale clearance

 

coach outlet

 

jordan retro 11

 

ralph lauren outlet

 

ugg boots

180328yueqin

Wednesday, April 18, 2018 4:54:04 AM

re: The Story about a Box: Programming the Perfect Square?

lucky paxther