Code sharing

Is there a way to share code like to game Cargo-bot? Like if I wanted to send code to a friend and have him play the game? Or is the only way that this can happen is if I get the game on apples store directly? If which case I would have to send him the code and him to have codea right

If it’s something you write in Codea and your friend also has Codea, then you can copy your code and send it to him.

He needs to have codea so you he can copy and paste it onto his