It's recorded that when a ruler was confronted by an enemy in very ancient times in China, he would ask the gods for advice on what moves to make, and what chances for victory to expect.