home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 220.lha / chessdoc < prev    next >
Text File  |  1996-02-14  |  13KB  |  250 lines

  1. -----------------------------
  2. LateNight Chess Documentation
  3. -----------------------------
  4.  
  5.      LateNight Chess was written for JUMPDISK in September/October 1988 by
  6. Chris Halsall of LateNight Developments Corporation. JUMPDISK Magazine has
  7. exclusive distribution rights until February 1989; no copies may be made of
  8. this program until after that time without its written permission.
  9.      As of February 1989, this program will become freely redistributable
  10. and may be copied and given away providing that no fee is charged, other
  11. than a reasonable disk copying charge. LateNight Developments Corporation
  12. retains all rights to this program.
  13.  
  14.      LateNight Chess is a player vs. player chess program; there is no
  15. computer vs. player mode. On the other hand, players may use this program to
  16. play games of chess over the telephone lines, assuming that both players
  17. have modems attached to the serial ports of their Amigas. In order to use
  18. this program in the two-player over the modem mode, you must also have the
  19. file "serial.device" in your devs: directory.
  20.      This program uses the (freely redistributable) AmigaDOS Replacement
  21. Project (ARP) library (published in the September 1988 JUMPDISK) to perform
  22. its file request operations. In other words, if you wish to LOAD or SAVE
  23. games, you must have the file "arp.library" in your "libs:" directory.
  24. Arp.library is also available on several of the commercial BBS systems (BIX,
  25. CompuServe, PLink, etc.), most local BBS systems, and probably also from
  26. your local Amiga dealer.
  27.      Note that LateNight Chess will operate fully without arp.library, with
  28. the exception of the Load Game and Save Game options.
  29.      An explanation of the menu item options follows, in order of appearance
  30. on the screen.
  31.      
  32. GAME OPTIONS:
  33.  
  34. Game->New
  35.      This sets up the board in the default configuration and, if in two-
  36. player over the modem mode, will bring up a requester to ask what color you
  37. would like to play. It then checks with the other player for agreement. If
  38. the other player agrees, play begins. If not, you are told so and given the
  39. color selection requester again.
  40.      Note: If both players happen to select New (or Play->Start at the same
  41. time, LateNight Chess will get a little confused for a while. It will soon,
  42. however, realize what has happened, tell both players, and then ask them to
  43. retry.
  44.  
  45. Game->Load
  46.      This lets you load a stored game of Chess. You must have Arp.library in
  47. your libs: directory for this operation to work.
  48.  
  49. Game->Save
  50.      This lets you save a game of Chess to disk. Again, you must have
  51. Arp.library in your libs: directory for this operation to work.
  52.  
  53. Game->Info
  54.      Just some information about how great we are, where to send truckloads
  55. of money to, and that kind of stuff.
  56.  
  57. Game->Quit
  58.      Three guesses, and the first two don't count.
  59.      
  60. BOARD OPTIONS:
  61.  
  62. Board->Rotate 180°
  63.      This option is primarily intended for two-player over the modem mode,
  64. to allow the person playing Black to see the board with the Black pieces on
  65. the bottom of the screen, as it should be for that player.
  66.  
  67. Board->Edit
  68.      Puts LateNight Chess into the board edit mode. This is usable at any
  69. point, including over the modem play, but causes the loss of chess history.
  70.  
  71. Take Back Move
  72.      In edit mode, pieces can be selected from the menu and dropped on the
  73. board, moved from one place on the board to another, or picked up off the
  74. board and dropped off the edge.
  75.      Once it is selected, the Board->Edit menu item becomes ghosted, and the
  76. following items become active....
  77.  
  78. Board->Play
  79.      The opposite of Edit. Puts the program back into play mode. LateNight
  80. Chess will ask whose turn it is next and then continue as usual.
  81.  
  82. Board->Clear
  83.      Clears the board when you want to start over.
  84.  
  85. Board->Initial
  86.      Sets the board to the initial chess state (Rook-Knight-Bishop-Queen-
  87. King-Bishop-Knight-Rook with a row of Pawns, for each color.)
  88.  
  89. Board->Black Pieces
  90.      Lets you select black pieces to put down on the board. Selectable by
  91. keyboard shortcut, using Right Amiga-Shift-1 for a King, Right Amiga-Shift-2
  92. for a Queen, etc.
  93.  
  94. Board->White Pieces
  95.      Lets you select white pieces to put down on the board. Selectable by
  96. keyboard shortcut, using Right Amiga-1 for a King, Right Amiga-2 for a
  97. Queen, etc.
  98.  
  99. PLAY OPTIONS:
  100.  
  101. Play->Resign
  102.      This is primarily for use in Over the Modem mode, where it stops the
  103. clocks and lets your opponent know that you have resigned the game. In
  104. local mode, this simply stops the clocks.
  105.  
  106. Play->Start
  107.      Basically the opposite of Resign. Used if you made a mistake in
  108. selecting Resign, or if you used Resign as a form of pause.
  109.  
  110. Play->Take Back Move
  111.      This, we are afraid, only works in local mode. This is used to take
  112. back one or more moves in a game. You can, in fact, Take Back Moves all the
  113. way to the beginning of the game.
  114.      
  115. OPPONENT OPTIONS:
  116.  
  117. Opponent->Local
  118.      This is the default setting. If in remote (modem) mode this will hang
  119. up the phone and release the serial line.
  120.  
  121. Opponent->Remote
  122.      When selected, LateNight Chess will try to allocate the serial port and
  123. prepare for a game of chess over the phone line. After selecting this, you
  124. should set your baud rate and, if you are dialling, select 
  125.  
  126. Modem->Dial
  127. or if you are answering, select 
  128. Modem->Answer
  129.  
  130. MODEM OPTIONS:
  131.  
  132. Modem->Messages
  133.      This is used to send messages back and forth between yourself and your
  134. opponent. It may be used at any time. A messaging window will pop up, with
  135. two lines of text displayed for each of your opponent and yourself, and a
  136. text gadget at the bottom to allow you to type in text.
  137.      Please note the text is not sent until you press Return, so you can
  138. make as many editing changes as you like to your line of text without your
  139. opponent seeing what you are doing, or even abort it if you wish. Also, you
  140. may select the Close gadget of the window at any time without losing what
  141. you are typing. When you reopen the window the text will still be waiting
  142. there for you to finish editing or abort.
  143.      You may play chess with the messaging window either open or closed.
  144. When a message comes in from your opponent the window will automatically pop
  145. up on your screen, so you won't miss any messages.
  146.  
  147. Modem->Dial
  148.      This pops up a dial requester. If you are using a modem which follows
  149. the Hayes "AT" standard, all you have to do is type in the number of your
  150. friend who you will be playing against, select either Touch Tone or Pulse,
  151. depending on your phone line dialling type, and then press Dial. If you find
  152. you have made a mistake, select the Hang Up gadget and try again. Otherwise,
  153. wait for the the modems to connect, and then press Start. You should then be
  154. able to play the game.
  155.      If you are using a modem that does not follow the "AT" standard, click
  156. on the Number gadget. This will switch you into String mode, which means
  157. what you type into the phone number string gadget gets sent out directly,
  158. rather than having "ATDT" or "ATDP" (depending on Touch Tone or Pulse mode,
  159. respectively) being sent out ahead of the string.
  160.      You should then type in whatever command your modem expects to precede
  161. a dial request, and then select Dial. Proceed as above after the connection
  162. is made.
  163.  
  164. Modem->Answer
  165.      Again, this brings up a requester. The default string here is "ATZ
  166. S0=1", which tells the modem to reset, and then set auto answer to one ring.
  167. If you find this does not work for your modem, you might try the string
  168. "ATA" WHEN THE PHONE IS RINGING. If this doesn't work, consult your modem
  169. manual, or ask your local modem guru.
  170.  
  171. Modem->Hang Up
  172.      This hangs up the modem. It first sends out the "+++" escape sequence,
  173. then sends out the command "ATH", and then drops and picks up the DTR line. 
  174.  
  175. Modem->Baud Rate
  176.      Here you have the choice of selecting the baud rate at which you will
  177. be talking to your modem, and your opponent. The options are 300, 1200, 2400
  178. and 9600 baud. It is advisable to decide with your opponent what baud rate
  179. you are going to be using before you actually start dialling, as switching
  180. baud rates after connection is always a very confusing and unrewarding
  181. practice.
  182.  
  183. NOTES
  184.      When dialling or answering the phone, after connection click the Start
  185. gadget. This lets the program know the connection was successful, and so
  186. will start passing handshaking information back and forth. If you simply
  187. click on the Close Window gadget, the requester will abort and the
  188. connection attempt will be considered unsuccessful.
  189.      If by mistake you click on the Close Window gadget, reselect Dial or
  190. Answer (it doesn't matter which), and then click on Start.
  191.      Also, if you are playing LateNight Chess with two Amigas over a
  192. null-modem cable, you will have to use either of the modem requesters and
  193. click on Start. Don't dial, just use them to let the program know there is
  194. someone at the other end.
  195.      Once connection is established, you should notice another mouse pointer
  196. moving around on your screen. This is your opponent's mouse pointer, so you
  197. can watch what he does while the game progresses. This pointer will work
  198. correctly even if you or your opponent have rotated your board 180°, though 
  199. to allow this, we have had to limit motion of the opponent pointer to be
  200. within the board boundaries.
  201.      If, during a game, you get a requester popping up saying Handshaking
  202. Error, Trouble with Remote. Retry or Cancel, this means your opponent's
  203. computer is not responding to repeated attempts to pass it the "Play Token."
  204. This could be because he has dropped the line on you (although usually you
  205. would be told), or that he has popped up a requester of some form, but has
  206. taken a very long time to acknowledge it.
  207.      If you know the opponent is there, click Retry. LateNight Chess will
  208. continue to try to reestablish handshaking, popping up the same requester
  209. periodically to let you know what is happening. You may, after clicking
  210. Retry or Cancel, save the game as it stands, so it may be continued if
  211. handshaking cannot be reestablished.
  212.      Castling, En Passant and Pawn promotion are all supported by LateNight
  213. Chess, as well as King in Check checking. We have not, however, installed
  214. Checkmate searching, as it would have taken a fair amount more code. 
  215. Therefore, it is up to the player to realize if he is in Checkmate or not. 
  216. This shouldn't be too difficult, as you can simply try to move the King into
  217. a position that you think may get you out of check. LateNight Chess will not
  218. allow anyone to move into check, and so there is no way for someone to make
  219. an illegal move because of this lack of a feature.
  220.      To castle, a clear path must exist between the King and the Rook which
  221. you wish to castle. The King and the Rook must not have been moved
  222. previously, and the King cannot be in check, move into check, nor pass
  223. through check. If all of these conditions are met, move the King two spaces
  224. toward the Rook involved, and that Rook will automatically be moved into the
  225. correct location. Technically, when Castling the Rook should move first, but
  226. this way was much easier to implement.
  227.      To make an En Passant move, move your pawn diagonally into the position
  228. behind your opponent's pawn which has just moved two squares on its initial
  229. move. This move is only valid immediately after the pawn's initial move.
  230. This means you may not wait a turn before enacting en passant.
  231.      To promote a pawn, you must move one of your pawns entirely across the
  232. board into your opponent's home territory. Once you manage this, a requester
  233. will pop up asking you what you would like the pawn to become. Your options
  234. are Rook, Knight, Bishop and Queen. Although Queen is the usual choice, any
  235. of the others are valid. Your Pawn may NOT remain a Pawn.
  236.      We have tried to make this program as bug-proof as possible, and we are
  237. almost entirely sure that it is not possible to crash it. However, if you
  238. manage to prove us wrong, or find what Leo Schwab calls "undesirable
  239. features," please let us know; we want to know about them!
  240.      A copy of the source code for LateNight Chess may be obtained from
  241. LateNight Developments for a fee of $15.
  242.       As stated in the Info section of the program, our address is:
  243. LateNight Developments Corporation, #202 - 306 Burnside Road West, Victoria,
  244. BC, Canada, V8Z 1M1. Phone: (604) 380-3032
  245.       We have had a lot of fun writing this program, and we hope it is of
  246. some entertainment value to you.
  247.       Sincerely, The entire LND Crew: Chris "Thumper" Halsall, Kim "Xor"
  248. Lewall, Paul "Sting" Gerber, and Steven "DeSade" Dean.
  249.  
  250.