Appendix E

TouchDevelop Editor on a Windows Phone

This appendix provides a worked example of using the TouchDevelop editor on a Windows phone. It does not cover all the editor’s features. Some experimentation is suggested for gaining familiarity with the editor.

E.1 The sample program

The script to be entered is shown in Figure A-1. It is published under the name rotor with code name /cqxk.

Figure A-1: The rotor program /cqxk

c0Ef001.jpg

E.2 The back button, undo and mistakes

The phone has three buttons below the touch sensitive screen. The important button used frequently in editing a script is the phone back button. Its main purpose is to return the screen ...

Get TouchDevelop: Programming on the Go, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.