code for the Three Kingdoms war