For the introduction to learn algorithm structurally, a visual programming language represented by Scratch or Google Blockly spreading over widely seems to be suitable. It may not be all the learners, but a certain student would need the knowledge of text-type programming language, when an enthusiastic student is going to make a more complex program. Therefore, I tried the mediation from a visual language to a text-type language by copying the form of the blocks in a visual language working as a subroutine, with a text-type program language. Other than the short source code that I could use as a distribution document in a catered lecture, I made long program "RoboSteering.bas" which included game characteristics to attract the interest of the student at the same time.