1981 · Nintendo

Octopus

This minisite was contributed by icyriver2023. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/gnw/octopus with me to Gold.

A 4-bit chip with 65 cells of memory runs the clock, the alarm and both games. The octopus has no random numbers to draw on. Its four tentacles take turns in a fixed order, and the only thing that varies is the clock's seconds.

01 · The game

Take the treasure past the tentacles

A diver climbs down a rope from the boat at the top left to a sunken ship's chest at the bottom right, takes treasure and brings it back, while an octopus reaches for him with four tentacles.

Left: Game A, 30 seconds in. Right: the clock, where the game plays itself once a second. Both are drawn from the segments the chip lit on the kit's model of it, on MAME's drawing of the LCD.

Right moves the diver one place toward the chest and left one place back; there are five places in the water. At the chest each press of right takes a piece of treasure, a point, and the diver carries it home in a bag. Climbing back into the boat with it is worth 3 more. A diver touched by a tentacle's tip is caught, and the next one in the boat takes his place; when the third is caught the game is over.

The screen is 70 fixed shapes printed on the LCD, and each one is either on or off. The diver has a separate shape for each of his six places, and every segment of every tentacle is a shape too. To move something, the game turns one shape off and the next one on.

02 · A replay

One tentacle moves at a time

Step through a minute of Game A, played by a computer player that looks a few steps ahead. Each frame is one change on the screen.

Next to moveThe diverWaitScore

Recorded on the kit's Sharp SM5A (kit/gnw/sm5a.js, held to MAME 0.289 instruction for instruction). A frame is kept each time the drawing routine ($0640) finishes a picture that differs from the last.

The game advances in steps, and each step moves one tentacle by one segment. The order never changes: the forked tentacle on the left, then the third, then the second, then the short one on the right ($0100). Each tentacle therefore moves once every four steps, and a player who counts steps can tell when a tip will next reach the diver.

03 · Memory and the screen

Every segment is one bit

Click a bit to light its segment, or a segment to find its bit. The picture is drawn from these cells alone.

The cells are the chip's memory as it finished a picture just after the replay above ends. The page turns them into segments with a port of $0640, the game's drawing routine; test_frame.js holds the port to the chip's own picture on every screen of several minutes of play.

The LCD has nine 4-bit latches for each of its two sets of segments. To draw, the game shifts a cell into the latches nine times, copies them, and shifts nine more for the second set ($0640). Twelve cells hold four segments each, and three hold the digits.

Because of this, the game never stores the diver's place as a number. It keeps six bits, one for each place, and one of them is set. The chip has no instruction that moves a bit, so the game swaps the carry flag with each bit along his path in turn, and the set bit ends up one place further on ($043B to $043E, $0300). The tentacles grow and shrink the same way.

04 · The tentacles

The octopus reads the clock

A tentacle grows one segment a turn to its tip, then shrinks one segment a turn. Its only choices come from the seconds of the clock the unit keeps during the game.

WhenGame AGame B
an empty tentacle's turnit starts again at once, except while the seconds end in 8 or 9, when it waits
the forked tentacle leaves its basedown toward the second place when the tens of seconds are odd, up toward the rope when even
a tentacle shrinks back to its baseit always pulls in completelyone bit of the seconds can leave the base out, and it grows again from there

Every segment of the four tentacles. The tips, in red, are the only segments that catch: one for each place in the water, two on the forked tentacle. Rules from $0100 to $01BB.

The game has no random number generator. The chip does have a counter that ticks sixteen times a second, and Popeye uses it for its random choices, but Octopus never reads it. To a player the seconds look random enough. Where the diver is makes no difference to which way a tentacle goes.

05 · Treasure

The octopus waits while you are paid

A take of treasure is four steps: the arm reaches in, the diver stands, the arm lifts the treasure (the point), and he stands again.

Left: every shape at the chest: the diver, his three poses and the bag. Right: a caught diver, held in the middle of the octopus.

While a take is under way the diver cannot move, and the wait before each step is two passes shorter, so the tentacles come faster while he is stuck ($005A, $00C0). On the step the treasure is lifted, and on the three steps the boat counts its 3 points in one by one, the octopus skips its turn ($0367, $0375).

Without treasure the diver cannot climb back into the boat: a press of left on the rope leaves him there ($0340). In the boat he goes back down by himself after 8 seconds, unless the forked tentacle is reaching up toward the rope ($03EB).

A caught diver struggles for nine steps ($00E9, $0700). At 200 and 500 points, if a diver has been lost, the spare divers blink for about five seconds and both come back; the game waits meanwhile ($0085, $06DC). At 999 the score goes on to 000.

06 · Speed

The game slows down at every hundred points

Move the score. The wait before each step comes from the hundreds digit plus the tens digit, so 190 is faster than 200.

Wait in Game AGame BA step takesTaking treasure

The wait for every score from 0 to 999 in Game A, from a port of $00C0; test_speed.js runs the game's own routine on the kit's model for all 1,000 scores in both games and compares. A step's length, measured on the model with the diver in the boat, is about 1,114 + 200 × wait cycles of 61 microseconds.

Game A starts with a wait of 12 passes, a step every 0.21 seconds, and Game B with 10. From hundreds and tens adding up to 2, 20 points, the two games run at the same speed, except at 100 to 109 points. The fastest, a wait of 4, comes when the two digits add up to 15 or more, and a hundred later the game is slow again.

After the first 20 points, Game B is harder only because of its tentacles. In Game B a shrinking tentacle can stop at its base and grow straight back out (section 04).

07 · Sound

All the sound comes from switching one pin on and off

Press a button to hear the game's own sound routine, recorded at the buzzer's pin.

Each sound is the list of moments the chip's R1 pin changed while its routine ran on the kit's model ($02AE, $02A7), played here as a square wave. test_sound.js runs them again and compares.

The piezo buzzer is wired straight to one output pin, so a tone is the program flipping that pin in a loop. Every step of a game clicks ($02A7). A point, a caught diver, the buzz on each step of his struggle and the bonus's beep are one routine with a length code ($02AE); the routine is byte for byte the one in Popeye. Out of a game the unit is silent except for the alarm.

08 · Controls

Both buttons at once do nothing

Time, Game A, Game B and Alarm are read through one row of the chip's inputs ($0504), and a change counts when two readings in a row agree. Holding a game's button shows its best score; the game starts when it is let go. Left and right have pins of their own, read on each pass and between the passes of the wait ($0380): a press is acted on at once, and the wait then goes on where it stopped. Holding a button does not repeat the move. Holding both counts as pressing neither; a review from 1982 said the diver dances when you do this, but he stays still.

Two test pads on the board are wired to the chip's other rows. With MAME's "Invincibility" pad held, the catch is never checked, and a held left or right repeats four times a second ($01C0, $0380). On the row MAME marks "alarm test?", one pad rings the alarm and another returns the unit to setting the time ($059E).

09 · The clock and the alarm

The clock plays the game by itself

Out of a game the unit is a clock, and the game runs in it at a step a second.

Thirty seconds of the clock, recorded on the kit's model: each frame is one redraw, once a second.

The clock keeps time on the chip's 1 Hz flag, set by a 15-bit counter of the 32,768 Hz crystal ($0200). Each second it runs a whole step of the game: the diver moves on, or back when he carries treasure, one tentacle moves and the catch is checked, with no points kept. The demo's diver is caught like any other.

Alarm shows the alarm's time, and each press turns it on or off; the note beside the clock is lit while it is on. Left and right then set its hours and minutes. When it rings, for a minute, the little octopus in the corner appears and the bolts flash.

10 · The unit and its makers

Who made Octopus

Nintendo released Octopus in Japan on 16 July 1981, as model OC-22, the second game of the Wide Screen series and less than a month after the first, Parachute.

An Octopus Game & Watch, switched off: a gold front with red buttons, the boat, the sea and the sunken ship printed behind the screen Fire, another Wide Screen Game & Watch, in the same case, showing AM 12:00 above the game

Left: an Octopus, switched off, so only the coloured scene behind the screen shows. Photo by Christoph Bauer, 2008, CC BY-SA 2.0, from Wikimedia Commons. Right: Fire, a Wide Screen game in the same case, with its segments lit; its clock shows AM 12:00, and the 1 is a single segment. Photo by Peer Schmidt, CC BY-SA 4.0. Both are reduced in size.

Nintendo's "Iwata Asks" interview about Game & Watch says who made it. Takehiro Izushi programmed Octopus and Masao Yamamoto programmed Parachute, at almost the same time. Makoto Kano drew the graphics. He worried that people outside Japan might not read the octopus's eyes the way he meant them. The small octopus that appears when the alarm rings is based on Tako no Hatchan, the octopus in Suiho Tagawa's 1931 manga, which older people in Japan still think of whenever octopuses come up.

Yamamoto said a game took about two months from the start to its ROM. Satoru Iwata remembered the price as 5,800 yen, which he said was expensive for a toy at the time. In America, the buyer who reviewed Octopus on Usenet in February 1982 saw five models in the shop at $35 each.

In another part of the interview, Izushi says the chip was the same kind used in calculators. Kano explains that a digit costs seven segments, and that showing AM or PM before the hour meant the first digit could use fewer, leaving more segments for the game. Octopus's clock is built that way. The first digit of the hour is a single segment that shows a 1 or nothing (5.0.1), AM and PM are one segment each (5.0.0, 5.3.0), and the hours count from 1 to 12 ($0240). The score gets only the three full digits, so after 999 it shows 000.

The game had other names abroad: Schnapp den Schatz ("grab the treasure") in German and La Piovra ("the octopus") in Italian, according to the Super Mario Wiki, and Mysteries of the Sea or Mysteries of the Deep in Britain, according to the Home Computer Museum in Helmond. Collectors on the gameandwatch.ch forum report a few units whose back reads "Nintend".

Nintendo brought the game back several times. Game & Watch Gallery on the Game Boy and Game & Watch Gallery 4 on the Game Boy Advance each have it twice, as the original and as a new version with Mario as the diver. Game & Watch Collection 2, a Club Nintendo reward for the Nintendo DS in Japan in 2008, has Parachute, Octopus, and a game of the two together, one on each screen. In Super Smash Bros., Mr. Game & Watch turns into the octopus for his Final Smash.