Notice for Windows users


#1

For Windows users,
the following code of the Listing 14.7, 14.8, 14.9, 14.11 must be corrected. (\r is needed to insert.)

fun description() = “Room: $name\n” + -> fun description() = “Room: $name\r\n” +

And the Listing 14.9 code too. (\r is needed to insert.)

override fun load() = “The villagers rally and cheer as you enter!\r\n${ringBell()}”

And the Listing 14.11 code too. (\r is needed to insert.)

final override fun load() =
“The villagers rally and cheer as you enter!\r\n${ringBell()}”

Good luck!