The add-ons and the rocket's parts are not in the tables of things lying on the planet. At a new game new_game has deal_places deal each player 19 places from a pool of 46, following the dealing list dealing_list, into the player's record (player_places for the player in play). Each place is four bytes: map column, map row, x and y in the page. As the view moves, load_map_window puts any of the current player's places in the window that are not yet taken (bit 7 of the first byte) into the two pick-up slots: places 0-10 as graphic $0C, an add-on lying on the planet, with the place's number as its frame (addon_graphics), and places 11-18 as graphic $1E, rocket parts 0-7 (rocket_part_frames). The pictures are drawn by the game that way: one place given to the player, in an emptied scratch copy of the map, brought in by load_map_window and drawn by update_ground_objects.

The dealing list

An entry of 1 to 5 deals a random place not yet dealt from that group of the pool: a random byte (random_a) ANDed with the group's size less one, tried again while the place is taken, so the groups' sizes are powers of two. An entry of 0 deals nothing and leaves the place $FF, no place -- unless the next entry is 3, when the place before it is copied 16 to the right and 35 up. The pool is all free again at each call, so the two players' places are dealt independently and may coincide. At the end of a planet the last entry alone ($61BB) is dealt again by planet_secured: the nose cone moves.

PlaceEntryWhat lies therePictureDealt in the simulator's game
0group 1add-on 1, the hook$46, row 8 (x $A8, y $78)
10: noneadd-on 2, the second hooknone
20: noneadd-on 3, the ore tanknone
3group 5add-on 4, the side jet (a block)$0D, row 7 (x $B8, y $78)
4group 5add-on 5, the lift jet (arches)$10, row 7 (x $50, y $78)
5group 2add-on 6, the fuel saver (a mound)$1A, row 9 (x $38, y $58)
6group 1add-on 7, the special beam (a post)$58, row 9 (x $68, y $97)
7group 2add-on 8, the missiles (a bar)$18, row 9 (x $68, y $97)
8group 1add-on 9, the figure$27, row 6 (x $68, y $97)
9group 1add-on 10, the slab$4A, row 9 (x $68, y $97)
100: the place before, 16 right and 35 upadd-on 11, the spire$4A, row 9 (x $78, y $74)
11group 3rocket part 0, a section of bars$3E, row 16 (x $68, y $9B)
12group 3rocket part 1, a checked section$0A, row 21 (x $68, y $9B)
13group 3rocket part 2, a crate-like section$2D, row 23 (x $68, y $9B)
14group 3rocket part 3, a crate-like section$04, row 8 (x $38, y $58)
15group 3rocket part 4, a fin$24, row 3 (x $68, y $9B)
16group 3rocket part 5, a fin$17, row 9 (x $68, y $47)
17group 3rocket part 6, the ore tank$1B, row 19 (x $18, y $9B)
18group 4rocket part 7, the nose cone$18, row 26 (x $68, y $9B)

Places 1 and 2, add-ons 2 and 3, are never dealt: add-on 2 comes with add-on 1, and the ore tank comes as rocket part 6. Places 9 and 10 are the two-piece load (carried_part), the spire dealt beside the slab at exactly the offset at which the ship carries them. The last column is the simulator's own new game, one deal among many.

The pool

Five groups, one for each entry value, each in map-column order. On the planet each group is a layer.

Group 3: 16 places at $605B

Feeds place 11, rocket part 0, a section of bars; place 12, rocket part 1, a checked section; place 13, rocket part 2, a crate-like section; place 14, rocket part 3, a crate-like section; place 15, rocket part 4, a fin; place 16, rocket part 5, a fin; place 17, rocket part 6, the ore tank -- 7 places from 16 that can be dealt, so no two of them coincide.

#AddressColumnRowxy
0$605B$048$38$58
1$605F$093$68$9B
2$6063$0A21$68$9B
3$6067$115$68$97
4$606B$179$68$47
5$606F$1B19$18$9B
6$6073$1F23$70$4B
7$6077$243$68$9B
8$607B$256$80$78
9$607F$2D23$68$9B
10$6083$394$68$9B
11$6087$3E16$68$9B
12$608B$408$68$97
13$608F$4717$68$9B
14$6093$5723$68$9B
15$6097$5823$68$9B

Group 1: 16 places at $609B

Feeds place 0, add-on 1, the hook; place 6, add-on 7, the special beam (a post); place 8, add-on 9, the figure; place 9, add-on 10, the slab -- 4 places from 16 that can be dealt, so no two of them coincide.

#AddressColumnRowxy
0$609B$019$68$97
1$609F$036$68$97
2$60A3$065$68$97
3$60A7$139$88$78
4$60AB$276$68$97
5$60AF$289$48$78
6$60B3$2A7$68$97
7$60B7$357$50$78
8$60BB$3E7$68$97
9$60BF$466$68$97
10$60C3$468$A8$78
11$60C7$4A9$68$97
12$60CB$4C9$68$97
13$60CF$589$68$97
14$60D3$5C9$58$7B
15$60D7$5F9$68$97

Group 5: 2 places at $60DB

Feeds place 3, add-on 4, the side jet (a block); place 4, add-on 5, the lift jet (arches) -- 2 places from 2 that can be dealt, so no two of them coincide.

#AddressColumnRowxy
0$60DB$0D7$B8$78
1$60DF$107$50$78

Group 2: 8 places at $60E3

Feeds place 5, add-on 6, the fuel saver (a mound); place 7, add-on 8, the missiles (a bar) -- 2 places from 6 that can be dealt, so no two of them coincide.

#AddressColumnRowxy
0$60E3$7F7$C0$78never dealt
1$60E7$0E6$68$97
2$60EB$7F7$58$78never dealt
3$60EF$168$68$97
4$60F3$189$68$97
5$60F7$1A9$38$58
6$60FB$1E7$68$97
7$60FF$569$68$97

Group 4: 4 places at $6103

Feeds place 18, rocket part 7, the nose cone.

#AddressColumnRowxy
0$6103$0122$B0$6B
1$6107$1826$68$9B
2$610B$4324$68$9B
3$610F$5124$58$9B