Bhishma Pitamah, as the supreme commander of the Kaurava army, framed and codified the rules of ethical conduct for the Kurukshetra war. These rules governed when and how warfare could be conducted (e.g., no fighting after sunset, no attacking unarmed opponents). Drishtadyumna led the Pandava army but didn't frame the rules.