This file is indexed.

/usr/share/doc/racket/games/gobblet.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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!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.14&nbsp; Gobblet --- Strategy 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;);">&#9660;</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: block;" 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="" class="tocviewselflink" 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="chat-noir.html" class="tocviewlink" 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;);">&#9658;</a></td><td>1.14&nbsp;</td><td><a href="" class="tocviewselflink" 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></table><div class="tocviewsublistbottom" style="display: none;" id="tocview_2"><table cellspacing="0" cellpadding="0"><tr><td align="right">1.14.1&nbsp;</td><td><a href="#%28part._.Game_.Rules%29" class="tocviewlink" data-pltdoc="x">Game Rules</a></td></tr><tr><td align="right">1.14.2&nbsp;</td><td><a href="#%28part._.Controls%29" class="tocviewlink" data-pltdoc="x">Controls</a></td></tr><tr><td align="right">1.14.3&nbsp;</td><td><a href="#%28part._.Auto-.Play%29" class="tocviewlink" data-pltdoc="x">Auto-<wbr></wbr>Play</a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber">1.14.1<tt>&nbsp;</tt></span><a href="#%28part._.Game_.Rules%29" class="tocsubseclink" data-pltdoc="x">Game Rules</a></td></tr><tr><td><span class="tocsublinknumber">1.14.2<tt>&nbsp;</tt></span><a href="#%28part._.Controls%29" class="tocsubseclink" data-pltdoc="x">Controls</a></td></tr><tr><td><span class="tocsublinknumber">1.14.3<tt>&nbsp;</tt></span><a href="#%28part._.Auto-.Play%29" class="tocsubseclink" data-pltdoc="x">Auto-<wbr></wbr>Play</a></td></tr></table></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="pousse.html" title="backward to &quot;1.13  Pousse --- Tic-Tac-Toe-like 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="jewel.html" title="forward to &quot;1.15  Jewel --- 3-D Skill Game&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;gobblet&quot;">1.14<tt>&nbsp;</tt><a name="(part._gobblet)"></a><span class="noborder"><img src="gobblet.png" alt="" width="32" height="32"/></span> <span class="ssansserif">Gobblet</span> &#8212;<wbr></wbr> Strategy Game</h4><blockquote class="refpara"><blockquote class="refcolumn"><blockquote class="refcontent"><p>To play <span class="ssansserif">Gobblet</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><span style="font-weight: bold">Gobblet!</span> is a board game from Blue Orange Games:</p><blockquote class="SCentered"><p><a href="http://www.blueorangegames.com/"><span class="stt">http://www.blueorangegames.com/</span></a></p></blockquote><p>Our 3x3 version actually corresponds to <span style="font-weight: bold">Gobblet! Jr.</span>, while
the 4x4 version matches <span class="ssansserif">Gobblet!</span>.</p><p>The Blue Orange web site provides rules for <span style="font-weight: bold">Gobblet! Jr.</span> and
<span style="font-weight: bold">Gobblet!</span>. The rules below are in our own words; see also the
Blue Orange version.</p><h5 x-source-module="(lib &quot;games/scribblings/games.scrbl&quot;)" x-part-tag="&quot;Game_Rules&quot;">1.14.1<tt>&nbsp;</tt><a name="(part._.Game_.Rules)"></a>Game Rules</h5><p>The 3x3 game is a generalization of tic-tac-toe:</p><ul><li><p>The object of the game is to get three in a row of your color,
vertically, horizontally, or diagonally.  Size doesn&rsquo;t matter for
determining a winner.</p></li><li><p>Each player (red or yellow) starts with 6 pieces: two large,
two medium, and two small.</p></li><li><p>On each turn, a player can either place a new piece on the
board, or move a piece already on the board&#8212;<wbr></wbr>from anywhere to
anywhere, as long as the &ldquo;from&rdquo; and &ldquo;to&rdquo; are different.</p></li><li><p>A piece can be placed (or moved to) an empty space, or it can
be placed/moved on top of a smaller piece already on the board,
&ldquo;gobbling&rdquo; the smaller piece.  The smaller piece does not have to
be an opponent&rsquo;s piece, and the smaller piece may itself have
gobbled another piece previously.</p></li><li><p>Only visible pieces can be moved, and only visible pieces count
toward winning.  Gobbled pieces stay on the board, however, and
when a piece is moved, any piece that it gobbled stays put and
becomes visible.</p></li><li><p>If moving a piece exposes a winning sequence for the opponent, and
if the destination for the move does not cover up one of the other
pieces in the sequence, then the opponent wins&#8212;<wbr></wbr>even if the move
makes a winning sequence for the moving player.</p></li><li><p>Technically, if a player touches a piece, then the piece must
be moved on that turn.  In other words, you&rsquo;re not allowed to peek
under a piece to remind yourself whether it gobbled anything.  If
the piece can&rsquo;t be moved, the player forfeits.  This particular
rule is not enforced by our version &#8212;<wbr></wbr> in part because our version
supports a rewind button, which is also not in the official game.</p></li></ul><p>The 4x4 game has a few changes:</p><ul><li><p>The object of the game is to get four in a row of your color.</p></li><li><p>Each player (red or yellow) starts with 12 pieces: three large,
three medium-large, three medium-small, and three small.</p></li><li><p>Each player&rsquo;s pieces are initially arranged into three stacks
off the board, and only visible pieces can be moved onto the board.
The initial stacks prevent playing a smaller piece before a
corresponding larger piece.</p></li><li><p>When a piece is moved from off-board onto the board, it must be
moved to either (1) an empty space, or (2) a space to gobble an
opponent&rsquo;s piece that is part of three in a row (for the opponent).
In other words, a new piece can gobble only an opponent&rsquo;s piece,
and only to prevent an immediate win on the opponent&rsquo;s next turn.
These restrictions do not apply when a piece that is already on the
board is moved.</p></li></ul><h5 x-source-module="(lib &quot;games/scribblings/games.scrbl&quot;)" x-part-tag="&quot;Controls&quot;">1.14.2<tt>&nbsp;</tt><a name="(part._.Controls)"></a>Controls</h5><p>Click and drag pieces in the obvious way to take a turn.  The shadow
under a piece shows where it will land when you drop it.</p><p>Use the arrow keys on your keyboard to rotate the board.  Use the
<span class="ssansserif">-</span> and <span class="ssansserif">=</span> keys to zoom in and out.  Use
<span class="ssansserif">_</span> and <span class="ssansserif">+</span> to make the game smaller and larger.
(Changing the size adjusts perspective in a slightly different way
than zooming.)  Depending on how keyboard focus works on your machine,
you may have to click the board area to make these controls work.</p><p>The button labeled <span class="ssansserif">&lt;</span> at the bottom of the window rewinds
the game by one turn.  The button labeled <span class="ssansserif">&gt;</span> re-plays one
turn in a rewound game.  An alternate move can be made at any point in
a rewound game, replacing the old game from that point on.</p><h5 x-source-module="(lib &quot;games/scribblings/games.scrbl&quot;)" x-part-tag="&quot;Auto-Play&quot;">1.14.3<tt>&nbsp;</tt><a name="(part._.Auto-.Play)"></a>Auto-Play</h5><p>Turn on a computer player at any time by checking the
<span class="ssansserif">Auto-Play Red</span> or <span class="ssansserif">Auto-Play Yellow</span> checkbox.  If
you rewind the game, you can choose an alternate move for yourself or
for the auto-player to find out what would have happened.  The
auto-player is not always deterministic, so replying the same move
might lead to a different result.  You can disable an auto-player at
any point by unchecking the corresponding
<span class="ssansserif">Auto-Play"</span>checkbox.</p><p>Important: In the 3x3 game, you <span style="font-style: italic">cannot</span> win as yellow against
the smart auto-player (if the auto-player is allowed to play red from
the start of the game).  In other words, red has a forced win in the
3x3 game, and the smart auto-player knows the path to victory.  You
might have a chance to beat the red player in the default mode,
though, which is represented by the <span class="ssansserif">Ok</span> choice (instead of
<span class="ssansserif">Smart</span>) in the <span class="ssansserif">Auto-Play Options</span> dialog.</p><p>Configure the auto-player by clicking the <span class="ssansserif">Auto-Play Options</span>
button.  Currently, there&rsquo;s no difference between <span class="ssansserif">Smart</span> and
<span class="ssansserif">Ok</span> in the 4x4 game.</p><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="pousse.html" title="backward to &quot;1.13  Pousse --- Tic-Tac-Toe-like 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="jewel.html" title="forward to &quot;1.15  Jewel --- 3-D Skill Game&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>