Firstly we need to setup or project
$ touch game.jazz$ youreditor game.jazz
The first part of the guessing game program will ask for user input, process that input, and check that the input is in the expected form. To start, we’ll allow the player to input a guess.
println("Guess the number!")println("Please input your guess")let input = read_line()println("You guess: ",input)
println is a function that prints string to the screen
read_line reads string from keyboard input ended by new line
Let's try to run this thing:
$ jazz game.jazzGuess the number!Please input your guess2You guessed: 2