Alright kiddo, do you know what a duel is? It's when two people agree to fight each other to solve a problem or to defend their honor. But back in the days when people used swords and guns, duels were very dangerous and could end in someone getting seriously hurt or even killed.
Now, a Code Duello was a set of rules that people agreed to follow when they were having a duel. These rules were kind of like a game, with each person taking turns to shoot or swipe their sword at the other person. The first person to land a hit would win the duel.
But why did people use these rules? Well, it was meant to make the duel fair and to lessen the chance of someone getting hurt or killed. The Code Duello had rules like the distance the two people had to stand apart, the number of shots they could take, and even what to do if the weapons didn't work properly.
Some people even used the Code Duello to settle non-violent disputes, like disagreements over money or property. It was seen as a way to show honor and respect for oneself and others.
However, dueling itself was eventually outlawed in many places because it was too dangerous and often led to tragic results. Nowadays, we use other ways to solve problems and disagreements, like talking things through or going to court.