Seppuku was a key part of bushido , the code of the samurai warriors ; it was used by warriors so that they would not fall into enemy hands and be ashamed . Seppuku eventually became a key part of bushido , the code of the samurai warriors ; it was used by warriors to avoid falling into enemy hands , and to attenuate shame and avoid possible torture .