When I was in high school I attempted to code a "Fog-of-War" chess where different pieces had different sight ranges.
The King had no sight individually, but their range was the sight-range of all pieces within one piece from them (because they could relay information)