Duck Cards Packs

Plan the farm

Plan a route the way people plan work for real farm robots: write down what it must do, name routines as Your cards, fit a whole field into 40 steps, then write a level for another group.

Cards in play.

Only these. A row in this pack can lay the same card more than once, so each group needs three Walk the row (Your card 203). Print this pack's cut sheet once for each group, then untick every card but that card and print it again until each group has enough.

  • Walk

    Walk forward

    walk_forward

    • Studio
    • Pad: L stick
    0
  • Walk

    Walk back

    walk_backward

    • Studio
    • Pad: L stick
    1
  • Walk

    Turn left

    turn_left

    • Studio
    • Pad: R stick
    2
  • Walk

    Turn right

    turn_right

    • Studio
    • Pad: R stick
    3
  • Walk

    Stop

    stop

    • Studio
    4
  • Speed

    Slow

    slow

    • Studio
    20
  • Trick

    Peck the ground

    peck_ground

    • Studio
    • Pad: B
    64
  • Sound

    Hello

    greet

    80
  • Control

    Start

    start

    100
  • Control

    End

    end

    101
  • Control

    Repeat

    times

    repeat

    102
  • Control

    End repeat

    end_repeat

    103
  • When

    When it falls

    when_falls

    120
  • Your card

    Draw it here

    Name it

    card_4

    It does

    203

The one Your card drawn here stands for three blank cards, each with its own code.

Your cards this pack uses

Write the name on the blank card with that number. In the pack file, the card carries the row it stands for.

Your card 203

Walk the row

Walk forward five times: one whole row, end to end.

  1. Repeat 5
  2. Walk forward
  3. End repeat

Your card 204

Row end right

Turn right, walk forward, turn right: round the end of a row and back along the next.

  1. Turn right
  2. Walk forward
  3. Turn right

Your card 205

Row end left

Turn left, walk forward, turn left: round the end of a row the other way.

  1. Turn left
  2. Walk forward
  3. Turn left

How it is scored.

Fewest cards wins. Count every card between Start and End: Repeat and End repeat, and every card under another. A Your card is one card. This is where a loop pays off.

Par is the shortest row the pack's author found. If your class finds a shorter one, the par was wrong, not the class.

A row solves a challenge when the duck ends on the goal, has walked through every tunnel the long way, and has not bumped into a wall or the edge of the board. When a challenge names a card to finish with, that card is last. Every Repeat needs its End repeat.

The board.

Every challenge card below draws its own board. Here is how big a square is.

The board rule

One Walk card moves the duck one square. One Turn card is a quarter turn, where it stands. That is the rule on paper and in Studio, and every par is counted by it.

A real duck

Walk and Turn cards on a duck are timed for now: two seconds each, and the duck does not land on board squares. Measured cards are being tested. So for now the board is played by people and in Studio, and a duck beside it is a trial.

Measured cards

Measured cards walk until the duck's own odometry says one 30 cm square and turn until it says a quarter turn. They are being validated, in Pollen's simulator and then on testers' ducks, before they are switched on.

Squares for people

Tape the board on the floor in 30 cm squares, so a student playing the duck can stand in one. Or draw it on squared paper and walk a finger.

The challenges.

Easiest first. Print this page and it prints these cards and nothing else, four to a sheet, ready to cut. Choose Actual size or 100%.

  1. Plan the farm 1 of 3

    Two rows and a turn

    Par 3 cards

    Your cards name a routine. Three names can say the whole route.

    Two rows of a field and the turn between them: one row out, round the end, and one row back.

    Grades 6 to 8. Duck Cards, CC BY 4.0, microduckstudio.com

  2. Plan the farm 2 of 3

    The whole field

    Par 7 cards

    Name the pattern for two rows, then repeat it. Why is this field five rows and not six?

    Five rows, a gate at each row end, and one row of cards. Write what the route must do before you lay any.

    Grades 6 to 8. Duck Cards, CC BY 4.0, microduckstudio.com

  3. Plan the farm 3 of 3

    Peck at the barn

    Par 4 cards

    Walk the row walks five squares whichever way the duck is facing. Does it have to be a row?

    From the far corner to the barn door, then one pretend peck at the door.

    Finish with

    Peck the ground

    Grades 6 to 8. Duck Cards, CC BY 4.0, microduckstudio.com

Lessons.

Each one fits a class period with paper only.

Your cards

Name a routine

Walk the row, Row end right and Row end left are Your cards: printed cards saved under one name. Write out every card The whole field stands for, step by step, and count them. Then count the cards you laid.

Ask: when is a run of cards worth a name of its own?

Specifications

Write the spec first

Before laying cards, write in plain sentences what the route must do: where it starts and faces, where it ends, which gates it passes, what it must never bump, and the card it finishes with. A spec says what, not how. Trade specs with another group, and each writes a row for the other's spec.

Ask: did a row meet your spec and still surprise you? What did the spec leave out?

Limits

Forty steps

A duck runs at most 40 steps in one row. A full six by six field, row by row, takes 45 steps, so The whole field is five rows, which take 37. Plan the sixth row as a second run: mark a nest square where the first run ends, and a person sets the duck there, facing the right way, before the second run.

Ask: where would you split a field into runs, and why there?

Authoring

Start a level

Each group draws a six by six field on squared paper: a start and facing, a goal, walls, one or two gates, and a finish card if you like. Solve it with plain cards only, because a class pack Studio writes carries no Your cards. Your card count is your par. Trade levels and try to beat each other's par.

Ask: if another group beat your par, what did they see that you did not?

Robots and people

Real robots, real specs

Real field robots and milking robots follow plans that people write and check. A milking robot stays in one place and the cows walk to it. The duck only plays a game about these robots; it does no farm work. Write three more lines a real farm robot's spec would need.

Ask: what should a real farm robot do when a person or an animal is in its way?

Take the pack.

The whole pack is one file in the open duck-pack/0 format. Duck Cards, from microduckstudio.com, CC BY 4.0.