Using readLine() and macOS Command Line Tool to create a Text Adventure app

Опубликовано: 27 Сентябрь 2019
на канале: Alex Paul
4,738
51

In this lesson readLine() is used to get input from the user to create a command-line text app. Also seen in this lesson is the use of the repeat-while loop to keep playing a scenario if some condition is true. The app is made using a macOS Command Line Tool. The app can be run in Xcode or Terminal. In the terminal, the following command runs the app $ swift main.swift