See above. Don’t become a munitions engineer, and, being aware that someone else will take that role, try to prevent anyone from taking that role. (Hint: That last part is very hard.)
The conclusions might change if planet-destroying bombs are necessary for some good reason, or if you have the option of safely leaving the planet and making sure nobody that comes with you will also want to build planet-destroying bombs. (Hint: That last part is still hard.)
Congratulations. Now when the bomb is attached the the CPU running the malevolent AI, the AI can hack the Pi and prevent the bomb from going off.
Sometimes the world needs dangerous things, like weapons.
If you don’t want to build dangerous things, don’t become a munitions engineer. (But be aware that someone else will take that role.)
If you are a munitions engineer, be a good one. Build a bomb that goes ‘bang’ reliably when it’s supposed to, and not otherwise. Keep it simple.
What if it is a bomb so big that it will destroy the entire planet?
See above. Don’t become a munitions engineer, and, being aware that someone else will take that role, try to prevent anyone from taking that role. (Hint: That last part is very hard.)
The conclusions might change if planet-destroying bombs are necessary for some good reason, or if you have the option of safely leaving the planet and making sure nobody that comes with you will also want to build planet-destroying bombs. (Hint: That last part is still hard.)