I've added a solution to the description page (click the arrow next to "Gate puzzle solution" to see it). Sorry for not providing it earlier!
Thanks for playing the game!
The game turned out to be short, but interesting. And despite the fact that I was stuck with the code, I still liked the game. Starting from the drawing style and ending with everything else
Thank you for the comment, and for coming back to finish the game. I'm glad you liked it!