[HugoBook] Chap.IV exercises

This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

Hugella
Posts: 73
Joined: Mon Jun 28, 2004 4:45 pm
Location: Minneapolis, Minnesota

[HugoBook] Chap.IV exercises

Post by Hugella »

In the 'What Should I Be Able To Do Now?' section (IV.i), the first exercise, 'Mixing Text Styles', will not run as printed. The full code should be:

Code: Select all

#include "hugolib.h"

routine main
{
	PrintingSample
	return
}

routine PrintingSample

{
	print "Text may be printed in \Bboldface\b, \Iitalics\i, \Uunderline\u, or 

\Pproportional\p typefaces."

color RED
	print "\nGet ready.  ";

color YELLOW
	print "\nGet set.  ";

color GREEN
	print "\nGo!"
}
(Note addition of main routine.)

Kent
Posts: 119
Joined: Fri Jun 27, 2003 12:10 pm

Noted

Post by Kent »

Thanks (again)--I'll fix this as soon as I get a chance.

Post Reply