How the engine was validated

The method, a table you can re-run, and what none of it proves

Last updated:

This site says its home engine reproduced a paid professional audit to the digit, with 27 of 27 flying-star palace numbers and 32 of 32 directional assignments. That is true. It was one home and one audit, and the audit is a private document that cannot be published. So this page shows what it can: what was compared, how a match was decided, the engine's full output for an invented home that you can re-run, and the same functions checked against examples that other people have published.

The short version

1. What was compared

The site's author bought a written feng shui audit of one residence from a professional practice in 2013, and compared the engine's output with it line by line. The totals were 27 flying-star numbers and 32 Eight House assignments. This page counts them as follows, and section 4 uses the same count.

A match means the engine printed the same number, or the same star name, as the audit for the same palace or direction. There was no tolerance, no rounding and no partial credit. One different digit would have been a miss.

Not published: the name of the practice, the practitioner, the property and everyone connected with it, and any page, quote or image of the document. It is a third party's paid work about a private home.

2. How the engine produces each number

Each number comes from one engine function and one rule. Periods are 20 years long and count from 1864, so period 8 runs from 2004 to 2023.

NumberEngine functionRule
Period starbase_chartThe period number goes in the centre and flies forward along the Luoshu path: centre, northwest, west, northeast, south, north, southwest, east, southeast.
Mountain starnatal_chartThe period star in the sitting palace goes in the centre and flies forward or backward. The direction comes from the mountain, in the same yuan as the sitting mountain, in that star's own trigram.
Facing starnatal_chartThe same rule, starting from the period star in the facing palace.
Which chartnatal_chart_from_degreesThe compass bearing gives the facing mountain, one of 24 of 15 degrees each. Within 3 degrees of its centre the plain chart is used. From 3 to 6.5 degrees the replacement-star chart is used. Within 1 degree of a boundary both neighbouring charts are shown.
Life trigramming_guaAdd the digits of the birth year, counted from Start of Spring, until one digit is left. Men take 11 minus that digit, women take that digit plus 4. A result of 5 becomes 2 for men and 8 for women.
Direction staryouxing_starsCompare the three lines of the life trigram with the three lines of the trigram in each direction. The pattern of lines that differ names the star, as the table below shows.
Lines that differStar
top生氣 Vitality
middle絕命 Severed Fate
bottom禍害 Mishap
top and middle五鬼 Five Ghosts
top and bottom六煞 Six Killings
middle and bottom天醫 Heavenly Doctor
all three延年 Longevity
none伏位 Stability

3. What this does not show

4. Reproduce it: an invented home

Nothing in this section is a real house. The home, the people and the floor plan are made up for this page. Run the same functions on your own inputs and compare.

InputValue
Front of the house faces256°
Mountain faced庚 yang Metal
Offset from the mountain's centre1°
Facing zone正向 true facing
Built and first occupied2016
Period8
Chart used下卦 plain chart
Sitting mountain甲 yang Wood
Facing mountain庚
Structure雙星到坐 double stars at the sitting

4.1 Flying stars: 27 numbers

The chart is built from three flights. The mountain flight starts from the period star in the sitting palace, and the facing flight from the period star in the facing palace. The reference mountain is the one that sets the direction of each flight, as described in section 2.

NumberEngine functionStart palaceStart starReference mountainFlight
Period starbase_chartcentre8noneforward
Mountain starnatal_chart, _polarity_for震 east6戌 Dog, Earthbackward
Facing starnatal_chart, _polarity_for兌 west1壬 yang Waterforward

Each number is the flight's start star plus or minus the palace's step along the Luoshu path. A result past 9 or below 1 is brought back into 1 to 9 by adding or subtracting 9. The steps are: centre 0, northwest 1, west 2, northeast 3, south 4, north 5, southwest 6, east 7, southeast 8.

PalaceStepPeriod starMountain starFacing star
中 centre08 + 0 = 86 − 0 = 61 + 0 = 1
乾 northwest18 + 1 = 96 − 1 = 51 + 1 = 2
兌 west28 + 2 = 10 → 16 − 2 = 41 + 2 = 3
艮 northeast38 + 3 = 11 → 26 − 3 = 31 + 3 = 4
離 south48 + 4 = 12 → 36 − 4 = 21 + 4 = 5
坎 north58 + 5 = 13 → 46 − 5 = 11 + 5 = 6
坤 southwest68 + 6 = 14 → 56 − 6 = 0 → 91 + 6 = 7
震 east78 + 7 = 15 → 66 − 7 = −1 → 81 + 7 = 8
巽 southeast88 + 8 = 16 → 76 − 8 = −2 → 71 + 8 = 9

4.2 Eight House: 32 assignments

Four invented residents. Each life trigram is worked out by the life-trigram function in section 2.

ResidentSexBornLife trigramGroup
Aman1972坎East
Bwoman1975艮West
Cman2003乾West
Dwoman2006震East

Each cell below is the star that the direction-star function in section 2 gives for that direction, with the pattern of changed lines that produces it underneath.

DirectionResident A
坎
Resident B
艮
Resident C
乾
Resident D
震
坎 north伏位 none五鬼 top and middle六煞 top and bottom天醫 middle and bottom
艮 northeast五鬼 top and middle伏位 none天醫 middle and bottom六煞 top and bottom
震 east天醫 middle and bottom六煞 top and bottom五鬼 top and middle伏位 none
巽 southeast生氣 top絕命 middle禍害 bottom延年 all three
離 south延年 all three禍害 bottom絕命 middle生氣 top
坤 southwest絕命 middle生氣 top延年 all three禍害 bottom
兌 west禍害 bottom延年 all three生氣 top絕命 middle
乾 northwest六煞 top and bottom天醫 middle and bottom伏位 none五鬼 top and middle

4.3 Floor plan: which room falls in which palace

The plan is a rectangle 12 metres wide and 9 metres deep, with north at the top and the front door on the west wall. Each room goes in the palace whose 45-degree slice of the compass holds it, seen from the centre of the whole plan.

Function: assign_pie

RoomWest edge (m)East edge (m)North edge (m)South edge (m)Bearing from the centrePalace
Study0403306.9°乾 northwest
Bedroom 248030°坎 north
Master bedroom8120458°艮 northeast
Living room0539246.8°坤 southwest
Dining room583690°中 centre
Bathroom8124697.1°震 east
Kitchen5869170.5°離 south
Bedroom 381269126.9°巽 southeast

4.4 Re-run it

The tables above are written by a script that calls the engine functions named in section 2. A test fails if this page and a fresh run ever differ. The script ships with the engine's source code.

5. Checked against published examples

These checks use public sources that print their own answers. They were added in October 2026 and are separate from the 2013 comparison. The sources are modern printings, not a classical edition, and the engine was not changed to make any of them pass.

Published exampleEngine agrees
Flying-star charts, period 8, all 24 facing mountains648/648
Eight House verse, printing 156/56
Eight House verse, printing 254/56
Two base numbers in a published sentence2/2

5.1 Flying-star charts from a public calculator

A public feng shui calculator publishes a complete period 8 chart for each of the 24 facing mountains, with the period, mountain and facing star in all nine palaces. We compared every page with the engine's plain chart for the same facing mountain. All 648 numbers agree: 24 charts, nine palaces, three numbers each.

The limit of this check: the source is another program, not a classical text. It shows that two implementations of the same convention agree. It covers plain charts only, so it does not test the replacement-star chart for mixed facings.

PageFacing rangeFacing mountainStructureMatching
S1157.6°-172.5°丙 yang Fire雙星到坐27/27
S2172.6°-187.5°午 Horse, Fire雙星到向 double stars at the facing27/27
S3187.6°-202.5°丁 yin Fire雙星到向27/27
SW1202.6°-217.5°未 Goat, Earth旺山旺向 prosperous sitting and facing27/27
SW2217.6°-232.5°坤上山下水 reversed stars27/27
SW3232.6°-247.5°申 Monkey, Metal上山下水27/27
W1247.6°-262.5°庚雙星到坐27/27
W2262.6°-277.5°酉 Rooster, Metal雙星到向27/27
W3277.6°-292.5°辛 yin Metal雙星到向27/27
NW1292.6°-307.5°戌上山下水27/27
NW2307.6°-322.5°乾旺山旺向27/27
NW3322.6°-337.5°亥 Pig, Water旺山旺向27/27
N1337.6°-352.5°壬雙星到向27/27
N2352.6°-7.5°子 Rat, Water雙星到坐27/27
N37.6°-22.5°癸 yin Water雙星到坐27/27
NE122.6°-37.5°丑 Ox, Earth旺山旺向27/27
NE237.6°-52.5°艮上山下水27/27
NE352.6°-67.5°寅 Tiger, Wood上山下水27/27
E167.6°-82.5°甲雙星到向27/27
E282.6°-97.5°卯 Rabbit, Wood雙星到坐27/27
E397.6°-112.5°乙 yin Wood雙星到坐27/27
SE1112.6°-127.5°辰 Dragon, Earth上山下水27/27
SE2127.6°-142.5°巽旺山旺向27/27
SE3142.6°-157.5°巳 Snake, Fire旺山旺向27/27

5.2 The Eight House verse

The direction stars are taught as a verse, the Great Wandering Year song, with one line for each life trigram. A line names the stars of the other seven trigrams, going clockwise from north and skipping its own. One source spells this out for one line, and the table reads it out. We read every line the same way.

DirectionLetter in the verseStar
坎 north六 Six Killings六煞
艮 northeast天 Heavenly Doctor天醫
震 east五 Five Ghosts五鬼
巽 southeast祸 Mishap禍害
離 south绝 Severed Fate絕命
坤 southwest延 Longevity延年
兌 west生 Vitality生氣

The engine never reads this verse. It computes each row from the trigram lines, so the comparison is a real one. We compared all eight lines in two public printings, which print the verse in simplified characters.

Head trigramPrinting 1MatchingPrinting 2Matching
乾乾六天五祸绝延生 Six Killings, Heavenly Doctor, Five Ghosts, Mishap, Severed Fate, Longevity, Vitality7/7乾六天五祸绝延生 Six Killings, Heavenly Doctor, Five Ghosts, Mishap, Severed Fate, Longevity, Vitality7/7
坎坎五天生延绝祸六 Five Ghosts, Heavenly Doctor, Vitality, Longevity, Severed Fate, Mishap, Six Killings7/7坎五天生延绝祸六 Five Ghosts, Heavenly Doctor, Vitality, Longevity, Severed Fate, Mishap, Six Killings7/7
艮艮六绝祸生延天五 Six Killings, Severed Fate, Mishap, Vitality, Longevity, Heavenly Doctor, Five Ghosts7/7艮六绝祸生延天五 Six Killings, Severed Fate, Mishap, Vitality, Longevity, Heavenly Doctor, Five Ghosts7/7
震震延生祸绝五天六 Longevity, Vitality, Mishap, Severed Fate, Five Ghosts, Heavenly Doctor, Six Killings7/7震延生祸绝五天六 Longevity, Vitality, Mishap, Severed Fate, Five Ghosts, Heavenly Doctor, Six Killings7/7
巽巽天五六祸生绝延 Heavenly Doctor, Five Ghosts, Six Killings, Mishap, Vitality, Severed Fate, Longevity7/7巽天五六祸生绝延 Heavenly Doctor, Five Ghosts, Six Killings, Mishap, Vitality, Severed Fate, Longevity7/7
離离六五绝延祸生天 Six Killings, Five Ghosts, Severed Fate, Longevity, Mishap, Vitality, Heavenly Doctor7/7离六五绝延祸天生 Six Killings, Five Ghosts, Severed Fate, Longevity, Mishap, Heavenly Doctor, Vitality5/7
坤坤天延绝生祸五六 Heavenly Doctor, Longevity, Severed Fate, Vitality, Mishap, Five Ghosts, Six Killings7/7坤天延绝生祸五六 Heavenly Doctor, Longevity, Severed Fate, Vitality, Mishap, Five Ghosts, Six Killings7/7
兌兑生祸延绝六五天 Vitality, Mishap, Longevity, Severed Fate, Six Killings, Five Ghosts, Heavenly Doctor7/7兑生祸延绝六五天 Vitality, Mishap, Longevity, Severed Fate, Six Killings, Five Ghosts, Heavenly Doctor7/7

Printing 1 agrees with the engine in all 56 places. Printing 2 differs in two places, both in one line, where it swaps the stars of two directions:

PrintingLineDirectionVerse saysEngine computes
2離震天醫生氣
2離巽生氣天醫

The two printings disagree with each other. The engine's row for that line comes from the line-change rule and matches printing 1. We have not checked either page against a primary edition, so we do not say which printing is the original.

5.3 One published sentence

The Wikipedia article on Flying Star Feng Shui says: "In a Period-8 building that faces southwest, the number that locates in Facing Palace is number 5 whereas the number in Sitting Palace is number 2." The engine's period 8 base chart puts 5 in the southwest palace and 2 in the northeast palace, the palace opposite. Both numbers agree.

6. Sources

All retrieved on 11 October 2026.

  1. Skill On, "Feng Shui Calculator: Period 8", 24 facing pages. The first column of the table in 5.1 links to each page.
  2. 易奇文化 (yiqibazi.com), "八宅大游年歌诀", 29 September 2022. This is printing 1.
  3. 南虚子易学网 (nanxuzi.com), "他山之石:八宅风水之大游年歌", 27 March 2020. This is printing 2, and the source of the worked reading in 5.2.
  4. Wikipedia, "Flying Star Feng Shui", section "Rules and Procedures" and the periods table.

Related pages