This file is indexed.

/usr/share/doc/racket/games/chat-noir.html is in racket-doc 6.1-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>1.18&nbsp; Chat Noir --- Puzzle Game</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_0&quot;);">&#9658;</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x">Games:<span class="mywbr"> &nbsp;</span> Fun Examples</a></td></tr></table></div><div class="tocviewsublisttop" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1&nbsp;</td><td><a href="bundled.html" class="tocviewselflink" data-pltdoc="x">Bundled Games</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="new-games.html" class="tocviewlink" data-pltdoc="x">Implementing New Games</a></td></tr><tr><td align="right">3&nbsp;</td><td><a href="Showing_Scribbled_Help.html" class="tocviewlink" data-pltdoc="x">Showing Scribbled Help</a></td></tr><tr><td align="right">4&nbsp;</td><td><a href="Showing_Text_Help.html" class="tocviewlink" data-pltdoc="x">Showing Text Help</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_1&quot;);">&#9658;</a></td><td>1&nbsp;</td><td><a href="bundled.html" class="tocviewlink" data-pltdoc="x">Bundled Games</a></td></tr></table><div class="tocviewsublist" style="display: none;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">1.1&nbsp;</td><td><a href="aces.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="aces.png" alt="" width="24" height="32"/></span> <span class="ssansserif">Aces</span> &#8212;<wbr></wbr> Solitaire Card Game</a></td></tr><tr><td align="right">1.2&nbsp;</td><td><a href="gofish.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="gofish.png" alt="" width="28" height="32"/></span> <span class="ssansserif">Go Fish</span> &#8212;<wbr></wbr> Kid&rsquo;s Card Game</a></td></tr><tr><td align="right">1.3&nbsp;</td><td><a href="crazy8s.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="crazy8s.png" alt="" width="24" height="32"/></span> <span class="ssansserif">Crazy 8s</span> &#8212;<wbr></wbr> Card Game</a></td></tr><tr><td align="right">1.4&nbsp;</td><td><a href="blackjack.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="blackjack.png" alt="" width="28" height="32"/></span> <span class="ssansserif">Blackjack</span> &#8212;<wbr></wbr> 21 Card Game</a></td></tr><tr><td align="right">1.5&nbsp;</td><td><a href="ginrummy.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="ginrummy.png" alt="" width="28" height="32"/></span> <span class="ssansserif">Rummy</span> &#8212;<wbr></wbr> Card Game</a></td></tr><tr><td align="right">1.6&nbsp;</td><td><a href="spider.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="spider.png" alt="" width="24" height="32"/></span> <span class="ssansserif">Spider</span> &#8212;<wbr></wbr> Solitaire Card Game</a></td></tr><tr><td align="right">1.7&nbsp;</td><td><a href="memory.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="memory.png" alt="" width="26" height="32"/></span> <span class="ssansserif">Memory</span> &#8212;<wbr></wbr> Kid&rsquo;s Game</a></td></tr><tr><td align="right">1.8&nbsp;</td><td><a href="slidey.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="slidey.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Slidey</span> &#8212;<wbr></wbr> Picture Puzzle</a></td></tr><tr><td align="right">1.9&nbsp;</td><td><a href="same.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="same.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Same</span> &#8212;<wbr></wbr> Dot-<wbr></wbr>Removing Game</a></td></tr><tr><td align="right">1.10&nbsp;</td><td><a href="mines.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="mines.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Minesweeper</span> &#8212;<wbr></wbr> Logic Game</a></td></tr><tr><td align="right">1.11&nbsp;</td><td><a href="paint-by-numbers.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="paint-by-numbers.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Paint By Numbers</span> &#8212;<wbr></wbr> Logic Game</a></td></tr><tr><td align="right">1.12&nbsp;</td><td><a href="lights-out.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="lights-out.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Lights Out</span> &#8212;<wbr></wbr> Logic Game</a></td></tr><tr><td align="right">1.13&nbsp;</td><td><a href="pousse.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="pousse.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Pousse</span> &#8212;<wbr></wbr> Tic-<wbr></wbr>Tac-<wbr></wbr>Toe-<wbr></wbr>like Game</a></td></tr><tr><td align="right">1.14&nbsp;</td><td><a href="gobblet.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="gobblet.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Gobblet</span> &#8212;<wbr></wbr> Strategy Game</a></td></tr><tr><td align="right">1.15&nbsp;</td><td><a href="jewel.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="jewel.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Jewel</span> &#8212;<wbr></wbr> 3-<wbr></wbr>D Skill Game</a></td></tr><tr><td align="right">1.16&nbsp;</td><td><a href="parcheesi.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="parcheesi.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Parcheesi</span> &#8212;<wbr></wbr> Board Game</a></td></tr><tr><td align="right">1.17&nbsp;</td><td><a href="checkers.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="checkers.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Checkers</span> &#8212;<wbr></wbr> Board Game</a></td></tr><tr><td align="right">1.18&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x"><span class="noborder"><img src="chat-noir.png" alt="" width="40" height="19"/></span> <span class="ssansserif">Chat Noir</span> &#8212;<wbr></wbr> Puzzle Game</a></td></tr><tr><td align="right">1.19&nbsp;</td><td><a href="tally-maze.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="tally-maze.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Tally Maze</span> &#8212;<wbr></wbr> Maze Enumeration Game</a></td></tr><tr><td align="right">1.20&nbsp;</td><td><a href="gcalc.html" class="tocviewlink" data-pltdoc="x"><span class="noborder"><img src="gcalc.png" alt="" width="32" height="32"/></span> <span class="ssansserif">GCalc</span> &#8212;<wbr></wbr> Visual λ-<wbr></wbr>Calculus</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_2&quot;);">&#9660;</a></td><td>1.18&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x"><span class="noborder"><img src="chat-noir.png" alt="" width="40" height="19"/></span> <span class="ssansserif">Chat Noir</span> &#8212;<wbr></wbr> Puzzle Game</a></td></tr></table><div class="tocviewsublistbottom" style="display: block;" id="tocview_2"><table cellspacing="0" cellpadding="0"><tr><td align="right">1.18.1&nbsp;</td><td><a href="Overview.html" class="tocviewlink" data-pltdoc="x">Overview</a></td></tr><tr><td align="right">1.18.2&nbsp;</td><td><a href="The_World.html" class="tocviewlink" data-pltdoc="x">The World</a></td></tr><tr><td align="right">1.18.3&nbsp;</td><td><a href="Breadth-first_Search.html" class="tocviewlink" data-pltdoc="x">Breadth-<wbr></wbr>first Search</a></td></tr><tr><td align="right">1.18.4&nbsp;</td><td><a href="Board_to_Graph.html" class="tocviewlink" data-pltdoc="x">Board to Graph</a></td></tr><tr><td align="right">1.18.5&nbsp;</td><td><a href="The_Cat_s_Path.html" class="tocviewlink" data-pltdoc="x">The Cat&rsquo;s Path</a></td></tr><tr><td align="right">1.18.6&nbsp;</td><td><a href="Drawing_the_Cat.html" class="tocviewlink" data-pltdoc="x">Drawing the Cat</a></td></tr><tr><td align="right">1.18.7&nbsp;</td><td><a href="Drawing_the_World.html" class="tocviewlink" data-pltdoc="x">Drawing the World</a></td></tr><tr><td align="right">1.18.8&nbsp;</td><td><a href="Handling_Input.html" class="tocviewlink" data-pltdoc="x">Handling Input</a></td></tr><tr><td align="right">1.18.9&nbsp;</td><td><a href="Tests.html" class="tocviewlink" data-pltdoc="x">Tests</a></td></tr><tr><td align="right">1.18.10&nbsp;</td><td><a href="Run__program__run.html" class="tocviewlink" data-pltdoc="x">Run, program, run</a></td></tr></table></div></div></div></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.1&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.1&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="checkers.html" title="backward to &quot;1.17  Checkers --- Board Game&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="bundled.html" title="up to &quot;1 Bundled Games&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="Overview.html" title="forward to &quot;1.18.1 Overview&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div><h4 x-source-module="(lib &quot;games/scribblings/games.scrbl&quot;)" x-part-tag="&quot;chat-noir&quot;">1.18<tt>&nbsp;</tt><a name="(part._chat-noir)"></a><span class="noborder"><img src="chat-noir.png" alt="" width="40" height="19"/></span> <span class="ssansserif">Chat Noir</span> &#8212;<wbr></wbr> Puzzle Game</h4><div class="SAuthorListBox"><span class="SAuthorList"><p class="author"><a href="http://www.eecs.northwestern.edu/~robby">Robby Findler</a>,<br/><a href="http://www.barzilay.org/">Eli Barzilay</a>,<br/>and <a href="http://www.cs.utah.edu/~mflatt/">Matthew Flatt</a></p></span></div><p>The goal of Chat Noir is to stop the cat from escaping the board. Each
turn you click on a circle, which prevents the cat from stepping on
that space, and the cat responds by taking a step. If the cat is
completely boxed in and thus unable reach the border, you win. If the
cat does reach the border, you lose.</p><p>To start a new game, hit the &ldquo;n&rdquo; key (but only after losing or
winning a game).</p><blockquote class="refpara"><blockquote class="refcolumn"><blockquote class="refcontent"><p>To play <span class="ssansserif">Chat Noir</span>, run the <span class="stt">PLT Games</span> program. (Under Unix, it&rsquo;s called <span class="stt">plt-games</span>).</p></blockquote></blockquote></blockquote><p>To get some insight into the cat&rsquo;s behavior, press the &ldquo;h&rdquo;
key. It will show you the cells that are on the cat&rsquo;s shortest path to
the edge, assuming that the cell underneath the mouse has been
blocked, so you can experiment to see how the shortest paths change
by moving your mouse around. Note that this slows down the game
considerably, so you can turn it back off by pressing &ldquo;h&rdquo; again.</p><p>The game was inspired by the one at
<a href="http://www.gamedesign.jp/flash/chatnoir/chatnoir.html">Game
Design</a> and has essentially the same rules. It also inspired the final
project for the introductory programming course at the University of
Chicago in the fall of 2008.</p><p>The remainder of this document explains the implementation of
the Chat Noir game in a
<a href="http://www.literateprogramming.com/">Literate Programming</a> style.</p><table cellspacing="0" cellpadding="0"><tr><td><p><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="Overview.html" class="toclink" data-pltdoc="x">1.18.1<span class="hspace">&nbsp;</span>Overview</a></p></td></tr><tr><td><p><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="The_World.html" class="toclink" data-pltdoc="x">1.18.2<span class="hspace">&nbsp;</span>The World</a></p></td></tr><tr><td><p><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="Breadth-first_Search.html" class="toclink" data-pltdoc="x">1.18.3<span class="hspace">&nbsp;</span>Breadth-first Search</a></p></td></tr><tr><td><p><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="Board_to_Graph.html" class="toclink" data-pltdoc="x">1.18.4<span class="hspace">&nbsp;</span>Board to Graph</a></p></td></tr><tr><td><p><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="The_Cat_s_Path.html" class="toclink" data-pltdoc="x">1.18.5<span class="hspace">&nbsp;</span>The Cat&rsquo;s Path</a></p></td></tr><tr><td><p><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="Drawing_the_Cat.html" class="toclink" data-pltdoc="x">1.18.6<span class="hspace">&nbsp;</span>Drawing the Cat</a></p></td></tr><tr><td><p><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="Drawing_the_World.html" class="toclink" data-pltdoc="x">1.18.7<span class="hspace">&nbsp;</span>Drawing the World</a></p></td></tr><tr><td><p><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="Handling_Input.html" class="toclink" data-pltdoc="x">1.18.8<span class="hspace">&nbsp;</span>Handling Input</a></p></td></tr><tr><td><p><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="Tests.html" class="toclink" data-pltdoc="x">1.18.9<span class="hspace">&nbsp;</span>Tests</a></p></td></tr><tr><td><p><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="Run__program__run.html" class="toclink" data-pltdoc="x">1.18.10<span class="hspace">&nbsp;</span>Run, program, run</a></p></td></tr></table><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.1&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.1&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="checkers.html" title="backward to &quot;1.17  Checkers --- Board Game&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="bundled.html" title="up to &quot;1 Bundled Games&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="Overview.html" title="forward to &quot;1.18.1 Overview&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>