History teacher here ! there are a massive amount of misconceptions about the samurai they were unimaginably good swordsmen sure and in the modern day we think of them only as swordsmen . Sword fighting was no where near as common as Hollywood would have you believe . truth is they were probably some of the best archers in history using a bow IIRC was called the yumi bow which was almost as good as an English longbow and were incredibly accurate with it . It takes years of training for soldiers to be willing to face death , the kids would be terrified to come out of cover with very accurate and very deadly arrows flying at them and if they did shooting a gun and being accurate with it are not actually that easy , even more so when the samurai are shooting at them