The first part of the code was "Two of one, one of two" noting everyone who wasn't town.

The alignments required some astronomy.