Warning, /games/kfourinline/doc/index.docbook is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" ?> 0002 <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [ 0003 <!ENTITY % English "INCLUDE"> 0004 <!ENTITY % addindex "IGNORE"> 0005 ]> 0006 0007 <book id="kfourinline" lang="&language;"> 0008 <bookinfo> 0009 <title>The &kfourinline; Handbook</title> 0010 0011 <authorgroup> 0012 <author> 0013 <firstname>Martin</firstname> 0014 <surname>Heni</surname> 0015 <affiliation> 0016 <address>&Martin.Heni.mail;</address> 0017 </affiliation> 0018 </author> 0019 <author> 0020 <firstname>Eugene</firstname> 0021 <surname>Trounev</surname> 0022 <affiliation> 0023 <address><email>eugene.trounev@gmail.com</email></address></affiliation> 0024 </author> 0025 <author> 0026 <firstname>Benjamin</firstname> 0027 <surname>Meyer</surname> 0028 </author> 0029 <author> 0030 <firstname>Johann Ollivier</firstname> 0031 <surname>Lapeyre</surname> 0032 </author> 0033 <author> 0034 <firstname>Anton</firstname> 0035 <surname>Brondz</surname> 0036 <affiliation> 0037 <address><email>dinolinux@gmail.com</email></address> 0038 </affiliation> 0039 </author> 0040 0041 0042 <!-- TRANS:ROLES_OF_TRANSLATORS --> 0043 </authorgroup> 0044 0045 <copyright> 0046 <year>1995</year><year>2007</year> 0047 <holder>&Martin.Heni;</holder> 0048 </copyright> 0049 0050 <legalnotice>&FDLNotice;</legalnotice> 0051 0052 <date>2021-06-05</date> 0053 <releaseinfo>KDE Gear 21.04</releaseinfo> 0054 0055 <abstract> 0056 <para> 0057 &kfourinline; is a four-in-a-row game by &kde;.</para> 0058 </abstract> 0059 0060 <keywordset> 0061 <keyword>KDE</keyword> 0062 <keyword>kdegames</keyword> 0063 <keyword>game</keyword> 0064 <keyword>board</keyword> 0065 <keyword>board game</keyword> 0066 <keyword>four wins</keyword> 0067 <keyword>four</keyword> 0068 <keyword>four in a row</keyword> 0069 <keyword>four in line</keyword> 0070 <keyword>kfourinline</keyword> 0071 <keyword>connect four</keyword> 0072 <keyword>connect 4</keyword> 0073 </keywordset> 0074 </bookinfo> 0075 0076 <chapter id="overview"> 0077 <title>Introduction</title> 0078 0079 <para> 0080 Game type: Strategy, Board 0081 </para> 0082 0083 <para> 0084 &kfourinline; is a board game for two players based on the 0085 <trademark>Connect-Four</trademark> game. 0086 </para> 0087 0088 <para> 0089 The players try to build up a row of four pieces using different strategies. Pieces are 0090 placed on a board. The game can also be played against a computer, as well on network. 0091 </para> 0092 0093 </chapter> 0094 0095 <chapter id="howtoplay"> 0096 <title>How to Play</title> 0097 0098 <screenshot> 0099 <mediaobject> 0100 <imageobject> 0101 <imagedata fileref="gameboard.png" format="PNG"/> 0102 </imageobject> 0103 <textobject> 0104 <phrase>&kfourinline; Game Board</phrase> 0105 </textobject> 0106 </mediaobject> 0107 </screenshot> 0108 0109 <para> 0110 When &kfourinline; loads, you can select the difficulty or start a two player game. If you like, 0111 you can also pick your color and select which color starts the game. 0112 </para> 0113 0114 <para> 0115 Each player is represented by a color (for example yellow or white for player one and red for player two). 0116 The goal of the game is to get four connected pieces of your color into any row, column or 0117 diagonal. 0118 The players move in turns. Each turn the player can place one of his or her pieces 0119 into any of the seven columns where each piece will fall to the lowest possible free place &ie; it 0120 will fall down until it reaches the ground level or another piece. 0121 </para> 0122 0123 <para> 0124 After one player's move is done the second player can make his or her input. 0125 This is repeated until the game is over, which is when one of the 0126 players has four pieces in a row, column or diagonal or no more moves 0127 are possible because the board is filled. 0128 </para> 0129 0130 <para> 0131 A player who first manages to get four pieces in a row, column or diagonal wins the 0132 game. If no more moves can be made but no player has won, the game ends drawn. 0133 </para> 0134 0135 </chapter> 0136 0137 <chapter id="rules"> 0138 <title>Game rules, strategies and tips</title> 0139 0140 <para> 0141 The board is separated into several regions. 0142 </para> 0143 0144 <para> 0145 The <firstterm>game board</firstterm> is constructed out of 7x6 fields 0146 which will be filled from bottom to top. The fields are marked with pieces in the 0147 color of the player who made the move to this position. On top of each column a 0148 colored arrow shows were the last piece had been put. 0149 </para> 0150 0151 <para> 0152 The <firstterm>status display</firstterm> shows which player 0153 is controlled by which input device. A local player can input moves using 0154 keyboard or mouse, a remote player is shown as network input and finally 0155 the computer can control the input for a player. 0156 The status display further shows the player's names and the level of the computer opponent. 0157 Additionally the number of won, drawn, lost and ended games is noted for both players. 0158 Which player is next to move is indicated by one of the player's names being highlighted. 0159 </para> 0160 0161 <para> 0162 The <firstterm>statusbar</firstterm> at the bottom of the screen displays the status of the game and 0163 which player is next to play. 0164 </para> 0165 0166 <sect1 id="remote-connections"> 0167 <title>Remote Connections</title> 0168 0169 <para> 0170 It is possible to play the game over a network connection with another 0171 computer. 0172 One of the computers will act as game server. This one can determine 0173 who should play which color. You can configure the network options 0174 in the menu 0175 <menuchoice><guimenu>Settings</guimenu><guimenuitem>Network Configuration...</guimenuitem></menuchoice>. 0176 In the menu 0177 <menuchoice><guimenu>Game</guimenu><guimenuitem>Network Chat...</guimenuitem></menuchoice>. 0178 you find a chat dialog box which allows you to speak with your friend. 0179 </para> 0180 0181 <para> 0182 When a network connection is built you will be asked to enter a remote host 0183 and a port. The port can usually just be left untouched, but if you know 0184 what you are doing replace it by another number, which has to be the 0185 same in both player games of course. The hostname should be the name of 0186 the remote host to which you are connecting. Only the client in 0187 the connection has to supply a hostname. It is often wise that the player 0188 behind a firewall chooses to be client as the firewall might not allow 0189 incoming connections. 0190 </para> 0191 0192 </sect1> 0193 </chapter> 0194 0195 <chapter id="interface-overview"> 0196 <title>Interface Overview</title> 0197 0198 <sect1 id="menu"> 0199 <title>Menu Items</title> 0200 0201 <variablelist> 0202 <varlistentry> 0203 <term><menuchoice> 0204 <shortcut> 0205 <keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo> 0206 </shortcut> 0207 <guimenu>Game</guimenu> 0208 <guimenuitem>New</guimenuitem> 0209 </menuchoice></term> 0210 <listitem> 0211 <para> 0212 Starts a new game. In a network game this option is only available for 0213 the network server. The network client will be automatically started by 0214 the server. 0215 </para> 0216 </listitem> 0217 </varlistentry> 0218 0219 <varlistentry> 0220 <term><menuchoice> 0221 <shortcut> 0222 <keycombo action="simul">&Ctrl;<keycap>O</keycap></keycombo> 0223 </shortcut> 0224 <guimenu>Game</guimenu> 0225 <guimenuitem>Load...</guimenuitem> 0226 </menuchoice></term> 0227 <listitem> 0228 <para> 0229 Loads a saved game. 0230 </para> 0231 </listitem> 0232 </varlistentry> 0233 0234 <varlistentry> 0235 <term><menuchoice> 0236 <shortcut> 0237 <keycombo action="simul">&Ctrl;<keycap>S</keycap></keycombo> 0238 </shortcut> 0239 <guimenu>Game</guimenu> 0240 <guimenuitem>Save</guimenuitem> 0241 </menuchoice></term> 0242 <listitem> 0243 <para> 0244 Saves the current game. 0245 </para> 0246 </listitem> 0247 </varlistentry> 0248 0249 <varlistentry> 0250 <term><menuchoice> 0251 <shortcut> 0252 <keycombo action="simul">&Ctrl;&End;</keycombo> 0253 </shortcut> 0254 <guimenu>Game</guimenu> 0255 <guimenuitem>End Game</guimenuitem></menuchoice></term> 0256 <listitem> 0257 <para> 0258 Ends a running game. 0259 </para> 0260 </listitem> 0261 </varlistentry> 0262 0263 <varlistentry> 0264 <term><menuchoice> 0265 <guimenu>Game</guimenu> 0266 <guimenuitem>Network Chat...</guimenuitem></menuchoice></term> 0267 <listitem> 0268 <para> 0269 Pops up a chat widget which allows you to send messages to the 0270 other party. 0271 </para> 0272 </listitem> 0273 </varlistentry> 0274 0275 <varlistentry> 0276 <term><menuchoice> 0277 <guimenu>Game</guimenu> 0278 <guimenuitem>Show Statistics</guimenuitem> 0279 </menuchoice></term> 0280 <listitem> 0281 <para> 0282 Shows a dialog containing information about the overall game statistics, that is 0283 games won, lost or drawn by both players. 0284 The dialog also allows to clear this all time statistics. 0285 </para> 0286 </listitem> 0287 </varlistentry> 0288 0289 <varlistentry> 0290 <term><menuchoice> 0291 <shortcut> 0292 <keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo> 0293 </shortcut> 0294 <guimenu>Game</guimenu> 0295 <guimenuitem>Quit</guimenuitem> 0296 </menuchoice></term> 0297 <listitem> 0298 <para> 0299 Quits the program. 0300 </para> 0301 </listitem> 0302 </varlistentry> 0303 0304 <varlistentry> 0305 <term><menuchoice> 0306 <shortcut> 0307 <keycombo action="simul">&Ctrl;<keycap>Z</keycap></keycombo> 0308 </shortcut> 0309 <guimenu>Move</guimenu> 0310 <guimenuitem>Undo</guimenuitem> 0311 </menuchoice></term> 0312 <listitem> 0313 <para> 0314 Undo the last move. If the previous player is played by the computer two 0315 moves are taken back so that it is the player's turn again. 0316 </para> 0317 </listitem> 0318 </varlistentry> 0319 0320 <varlistentry> 0321 <term><menuchoice> 0322 <shortcut> 0323 <keycombo action="simul">&Ctrl;&Shift;<keycap>Z</keycap></keycombo> 0324 </shortcut> 0325 <guimenu>Move</guimenu> 0326 <guimenuitem>Redo</guimenuitem> 0327 </menuchoice></term> 0328 <listitem> 0329 <para> 0330 Replay a move which had been undone. If one of the players is played by 0331 the computer two moves are redone so that it is the player's turn again. 0332 </para> 0333 </listitem> 0334 </varlistentry> 0335 0336 <varlistentry> 0337 <term><menuchoice> 0338 <shortcut> 0339 <keycap>H</keycap> 0340 </shortcut> 0341 <guimenu>Move</guimenu> 0342 <guimenuitem>Hint</guimenuitem> 0343 </menuchoice></term> 0344 <listitem> 0345 <para> 0346 The computer will calculate the best possible move for you and mark it with a 0347 sign on the game board. How good the move actually is depends on the level of 0348 the computer. 0349 </para> 0350 </listitem> 0351 </varlistentry> 0352 0353 <varlistentry> 0354 <term><menuchoice> 0355 <guimenu>Settings</guimenu> 0356 <guisubmenu>Theme</guisubmenu> 0357 </menuchoice></term> 0358 <listitem><para> 0359 <action>Choose a graphical theme for the game. Which themes are available depends on the current installation.</action> 0360 </para></listitem> 0361 </varlistentry> 0362 0363 <varlistentry> 0364 <term><menuchoice> 0365 <guimenu>Settings</guimenu> 0366 <guimenuitem>Network Configuration...</guimenuitem></menuchoice></term> 0367 <listitem> 0368 <para> 0369 Pops up a dialog for the network configuration. You can choose to be 0370 server or client. If you are server you can also choose what color the 0371 remote player should take over. If a network game is running you can 0372 also disconnect it in this menu. 0373 </para> 0374 </listitem> 0375 </varlistentry> 0376 0377 </variablelist> 0378 0379 <para> 0380 Additionally &kfourinline; has the common &kde; <guimenu>Settings</guimenu> and <guimenu>Help</guimenu> 0381 menu items, for more information read the sections about the <ulink url="help:/fundamentals/menus.html#menus-settings" 0382 >Settings Menu</ulink> and <ulink url="help:/fundamentals/menus.html#menus-help">Help Menu</ulink> 0383 of the &kde; Fundamentals. 0384 </para> 0385 0386 </sect1> 0387 0388 </chapter> 0389 0390 <chapter id="config"> 0391 <title>Game Configuration</title> 0392 <para>&kfourinline; can be configured using the configuration dialog with the <menuchoice><guimenu>Settings</guimenu> <guimenuitem>Configure &kfourinline;...</guimenuitem></menuchoice> menu item.</para> 0393 0394 <screenshot> 0395 <mediaobject> 0396 <imageobject> 0397 <imagedata fileref="settings.png" format="PNG"/> 0398 </imageobject> 0399 <textobject> 0400 <phrase>Game Configuration</phrase> 0401 </textobject> 0402 </mediaobject> 0403 </screenshot> 0404 0405 <para><guilabel>Starting Player Color</guilabel>: Determine which player color (<guilabel>Red</guilabel> or <guilabel>Black</guilabel>) has the first move in the next game.</para> 0406 <para><guilabel>Player Names</guilabel>: Change the names of the players.</para> 0407 <para><guilabel>Black Plays With</guilabel>: 0408 Choose who should play for player 1. It can be either 0409 <guilabel>Mouse</guilabel> or <guilabel>Keyboard</guilabel>, 0410 &ie; a local player using the mouse or keyboard 0411 as input device or <guilabel>Computer</guilabel>, &ie; the computer 0412 plays for this player.</para> 0413 <para><guilabel>Red Plays With</guilabel>: Same as <guilabel>Black Plays With</guilabel> but for player 2 0414 (red).</para> 0415 <para><guilabel>Computer Difficulty</guilabel>: Select the level of the computer player.</para> 0416 <para><guilabel>Use AI learning</guilabel>: The computer AI can learn from mistakes made in one game.</para> 0417 0418 </chapter> 0419 0420 <chapter id="faq"> 0421 <title>Frequently asked questions</title> 0422 <qandaset> 0423 0424 <qandaentry> 0425 <question> 0426 <para> 0427 Can I change the look of the game? 0428 </para> 0429 </question> 0430 <answer> 0431 <para> 0432 You can change the color of the pieces by opening the <menuchoice><guimenu>Settings</guimenu> <guisubmenu>Theme</guisubmenu></menuchoice> menu item. 0433 </para> 0434 </answer> 0435 </qandaentry> 0436 0437 <qandaentry> 0438 <question> 0439 <para> 0440 Can I use the keyboard to play the game? 0441 </para> 0442 </question> 0443 <answer> 0444 <para> 0445 You cannot use the keyboard to control the pieces. 0446 </para> 0447 </answer> 0448 </qandaentry> 0449 0450 <qandaentry> 0451 <question> 0452 <para> 0453 I have lost control of who is in the lead, can I find it out? 0454 </para> 0455 </question> 0456 <answer> 0457 <para> 0458 Yes, you can see statistics by opening the <menuchoice><guimenu>Game</guimenu> <guimenuitem>Show Statistics</guimenuitem></menuchoice> menu item. 0459 </para> 0460 </answer> 0461 </qandaentry> 0462 0463 </qandaset> 0464 0465 </chapter> 0466 0467 <chapter id="credits"> 0468 <title>Credits and License</title> 0469 0470 <para> 0471 &kfourinline; 0472 </para> 0473 <para> 0474 Program copyright 1995-2007 &Martin.Heni; &Martin.Heni.mail; 0475 and Benjamin Meyer. 0476 </para> 0477 <para> 0478 Graphics copyright 2007 Eugene Trounev <email>eugene.trounev@gmail.com</email> 0479 and Johann Ollivier Lapeyre. 0480 </para> 0481 <para> 0482 Documentation copyright 2007 &Martin.Heni; &Martin.Heni.mail; and Benjamin Meyer. 0483 </para> 0484 0485 <!-- TRANS:CREDIT_FOR_TRANSLATORS --> 0486 0487 &underFDL; 0488 &underGPL; 0489 0490 </chapter> 0491 0492 &documentation.index; 0493 </book> 0494 <!-- 0495 Local Variables: 0496 mode: sgml 0497 sgml-minimize-attributes:nil 0498 sgml-general-insert-case:lower 0499 sgml-always-quote-attributes:t 0500 sgml-indent-step:0 0501 sgml-indent-data:t 0502 End: 0503 --> 0504