I'm not sure which novel you're referring to, but the Eight Trigrams Formation of the Three Kingdoms Period is one of the most famous formations in Chinese history. It's said that Zhuge Liang once set up a formation in the Eight Trigrams Formation to resist the enemy's attack. If you can provide more background information, I can try to help you find related novels.