Block Code Duck Pond Unblocked

Play Block Code Duck Pond online for free in your browser. No download, no sign-up.

Block Code Duck Pond gameplay screenshot
  • Partly works on mobile
Report a problem

Turn your phone sideways for a bigger view of this game.

Block Code Duck Pond is a programming game set in a small blue pond full of rubber ducks. Your duck has a cannon, a scanner and the ability to swim, and you control all three with code. Each opponent duck is a puzzle: one sits still, one bobs back and forth, one is out of range. Block Code Duck Pond is also a bridge to real code, because every challenge comes back right away as a JavaScript exercise.

How to Play Block Code Duck Pond

The pond fills the left of the screen with your orange duck and an opponent. Health bars under the pond show how much damage each duck can still take. On block levels you snap together commands like cannon, scan and swim. On JavaScript levels the same commands are typed into a code editor with line numbers.

Press Run Program and your duck carries out the program in real time. Knock the opponent’s health to zero to win. The success message shows the JavaScript behind your blocks, and OK moves you on.

The first pair asks for one well-aimed shot. The next needs a while loop because the target takes many hits. Then comes a moving opponent that you track with scan, a distant one you must swim into, a weak-duck level where you swim partway, stop and fire, and finally an opponent that flees when hit.

Block Code Duck Pond Controls

Controls for Block Code Duck Pond
ActionKeyboardMouseTouch
Build a program (block levels)—Drag blocks from the Pond and Math categoriesDrag blocks with your finger
Write a program (JavaScript levels)Type in the code editorClick in the editor to place the cursor—
Set an angle or a numberType the number and press EnterClick the value and type a new oneTap the value
Run or reset the battle—Click Run Program, then ResetTap Run Program, then Reset
Look up the commands—Click DocumentationTap Documentation

Tips and Strategies

  • Work out the angle on paper. A target straight above you is at 90 degrees, and straight to the right is 0.
  • Feed scan into cannon. Using scan(angle) as the range lets the shot land on a moving duck every time.
  • Wrap attacks in while (true). A single shot rarely finishes an opponent, so keep firing in a loop.
  • Watch your own health. Crashing into a duck hurts you too, which is why one level makes you stop before contact.
  • Read the Documentation panel. It explains loc_x, loc_y, speed and health, which help with the last levels.

Features

  • Ten levels as five challenges, each solved in blocks and then in JavaScript.
  • Built-in code editor with syntax coloring for the text levels.
  • Documentation panel with a compass, a pond map and every command.
  • Live battle view with health bars and cannon fire.

Tested and updated:

Block Code Duck Pond Unblocked: FAQ

Why do the levels come in pairs?

Each of the five challenges appears twice. The odd level solves it with blocks, and the next level asks for the same idea typed as JavaScript, so you can compare the two forms directly.

How are angles measured?

Zero degrees points right (east), 90 points up, 180 points left and 270 points down. The Documentation panel shows a compass and lists every command.

What is the cannon's range?

The cannon reaches up to 70 meters, and the pond is 100 by 100 meters. Targets farther away than that have to be reached by swimming.

Can I type code on a tablet?

The block levels work with touch, but the JavaScript levels need a keyboard. A computer is the comfortable choice for the second half of each pair.

More Free Games to Play Online