As long as your intent is merely to train a superintelligence to be good at hacking (and counterhacking), you’re in the clear.
As long as your intent is merely to train a superintelligence to be good at hacking (and counterhacking), you’re in the clear.