📄 pasq1009.html
字号:
<HTML>
<HEAD><LINK href="../style.css" rel="stylesheet" type="text/css">
<TITLE>Pascal Lesson 1 : Quiz 10</TITLE></HEAD>
<BODY background="../tile01.jpg">
<P><CENTER><H1>Quiz for Chapter 10</H1></CENTER></P><p>
Have you read the <a href="pasl1009.html">lesson</a> ?</p>
<h3>Time : 30 min each</h3><ol>
<li>Change your space invader game into enumerated types, i.e. :<br>
<tt>enemy = (robot, alien, ufo);</tt> etc...</li>
<li>Change your poker or black jack game into enumerated types :<br>
<tt>turf = (spade, heart, club, diamond);<br>
numbers = (two, three, ... , jack, queen, king, ace);</tt></li></ol>
<p>Note :<br>
Changing your program doesn't mean you must alter all of the logic ! If you
have designed the program carefully, you only make a little alteration.
I intend this to build up your program design skill.</p>
<h3>Challenge : 3 days</h3><p>
Make a pac-man game, using your own random number generator. You have
4 ghosts in the game, player has 5 lives. It has a super bullet that
makes ghosts eatable. Just like a normal pac-man. You must record the
highest score, but not in file (since I haven't taught you yet). Hint :<ul>
<li>Use C as the Pac-man</li>
<li>Use . as the small bullet</li>
<li>Use * as the big bullet</li>
<li>For ghosts you may use U</li></ul>
<p>Make this as interesting as possible.</p>
<p>That's all !</p><hr>
<P><H3>Where to go ?</H3><p>
<A HREF="pasl1009.html">Back to chapter 10</A><BR>
<A HREF="pasl1010.html">Advance to chapter 11</A>, about sets.<BR>
<A HREF="pasles01.html">To lesson 1 contents</A><BR>
<A HREF="../news.html">My main tutorial homepage</A><BR>
<A HREF="../mylink.html">My programming links</A><BR>
<A HREF="../faq.html">Contact me here</A>
</P><hr><P class="cpy">By : Roby Joehanes, © 1997, 2000</P>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -