home *** CD-ROM | disk | FTP | other *** search
/ MORE WinGames / WINGAMES.iso / chess / chess.rc < prev    next >
Text File  |  1991-01-20  |  7KB  |  184 lines

  1. /*
  2.   C source for GNU CHESS
  3.  
  4.   Revision: 1990-09-30
  5.  
  6.   Modified by Daryl Baker for use in MS WINDOWS environment
  7.  
  8.   This file is part of CHESS.
  9.  
  10.   CHESS is distributed in the hope that it will be useful, but WITHOUT ANY
  11.   WARRANTY.  No author or distributor accepts responsibility to anyone for
  12.   the consequences of using it or for whether it serves any particular
  13.   purpose or works at all, unless he says so in writing.  Refer to the CHESS
  14.   General Public License for full details.
  15.  
  16.   Everyone is granted permission to copy, modify and redistribute CHESS, but
  17.   only under the conditions described in the CHESS General Public License.
  18.   A copy of this license is supposed to have been given to you along with
  19.   CHESS so you can know your rights and responsibilities.  It should be in a
  20.   file named COPYING.  Among other things, the copyright notice and this
  21.   notice must be preserved on all copies.
  22. */
  23.  
  24. #include <windows.h>
  25. #include "chess.h"
  26.  
  27. CHESS  ICON   "Chess.ico"
  28.  
  29.  
  30. PAWN    BITMAP "pawn.bmp"
  31. ROOK    BITMAP "rook.bmp"
  32. KNIGHT  BITMAP "knight.bmp"
  33. BISHOP  BITMAP "bishop.bmp"
  34. QUEEN   BITMAP "queen.bmp"
  35. KING    BITMAP "king.bmp"
  36.  
  37. PAWNM   BITMAP "pawnm.bmp"
  38. ROOKM   BITMAP "rookm.bmp"
  39. KNIGHTM BITMAP "knightm.bmp"
  40. BISHOPM BITMAP "bishopm.bmp"
  41. QUEENM  BITMAP "queenm.bmp"
  42. KINGM   BITMAP "kingm.bmp"
  43.  
  44. PAWNO   BITMAP "pawno.bmp"
  45. ROOKO   BITMAP "rooko.bmp"
  46. KNIGHTO BITMAP "knighto.bmp"
  47. BISHOPO BITMAP "bishopo.bmp"
  48. QUEENO  BITMAP "queeno.bmp"
  49. KINGO   BITMAP "kingo.bmp"
  50.  
  51. #include "about.dlg"
  52.  
  53. #include "saveopen.h"
  54. #include "saveopen.dlg"
  55.  
  56. #include "getnum.dlg"
  57.  
  58. #include "color.h"
  59. #include "color.dlg"
  60.  
  61. #include "timecnt.h"
  62. #include "timecnt.dlg"
  63.  
  64. #include "stats.h"
  65. #include "stats.dlg"
  66.  
  67. #include "review.dlg"
  68. #include "test.dlg"
  69. #include "promote.dlg"
  70. #include "manual.dlg"
  71.  
  72. CHESS MENU Begin
  73.         POPUP "&File"
  74.               Begin
  75.                   MENUITEM "&New",                        MSG_CHESS_NEW
  76.                   MENUITEM "&Open...",                    MSG_CHESS_GET
  77.                   MENUITEM "&Save...",                    MSG_CHESS_SAVE
  78.                   MENUITEM "&List...",                    MSG_CHESS_LIST
  79.                   MENUITEM SEPARATOR
  80.                   MENUITEM "E&xit",                       MSG_CHESS_QUIT
  81.               END
  82.  
  83.         POPUP "&Edit"
  84.               BEGIN
  85.                 MENUITEM "&Setup Board",                  MSG_CHESS_EDIT
  86.                 MENUITEM "R&eview Game...",               MSG_CHESS_REVIEW
  87.                 MENUITEM SEPARATOR
  88.                 MENUITEM "&Undo\tBksp",                   MSG_CHESS_UNDO
  89.                 MENUITEM "&Remove\tALT+Bksp",             MSG_CHESS_REMOVE
  90.                 MENUITEM SEPARATOR
  91.                 MENUITEM "&Force",                        MSG_CHESS_FORCE
  92.               END
  93.  
  94.         POPUP "&Options"
  95.                 BEGIN
  96.                   MENUITEM "&Tone"                        MSG_CHESS_BEEP
  97.                   MENUITEM "C&oordinates",                MSG_CHESS_COORD
  98.                   MENUITEM "&Search Stats",               MSG_CHESS_POST
  99.                   MENUITEM "T&est Speed",                 MSG_CHESS_TEST      
  100.                   MENUITEM SEPARATOR
  101.                   MENUITEM "&Hash"                        MSG_CHESS_HASH
  102.                   MENUITEM "&Both"                        MSG_CHESS_BOTH
  103.                   MENUITEM "Boo&k"                        MSG_CHESS_BOOK
  104.                   MENUITEM SEPARATOR
  105.                   MENUITEM "&A Window..."                 MSG_CHESS_AWIN
  106.                   MENUITEM "&B Window..."                 MSG_CHESS_BWIN
  107.                   MENUITEM "&Contemp..."                  MSG_CHESS_CONTEMP
  108.                 END
  109.  
  110.         POPUP "&Skill"
  111.                 BEGIN             
  112.                   MENUITEM "&Time...",                    IDM_TIMECONTROL
  113.                   MENUITEM SEPARATOR                      
  114.                   MENUITEM "&Random",                     MSG_CHESS_RANDOM
  115.                   MENUITEM "&Easy",                       MSG_CHESS_EASY
  116.                   MENUITEM "&Depth...",                   MSG_CHESS_DEPTH
  117.               END
  118.  
  119.         POPUP "S&ide"
  120.               BEGIN
  121.                   MENUITEM "&Reverse",                    MSG_CHESS_REVERSE
  122.                   MENUITEM "&Switch",                     MSG_CHESS_SWITCH
  123.                   MENUITEM "&Black",                      MSG_CHESS_BLACK
  124.                   MENUITEM "&White",                      MSG_CHESS_WHITE
  125.               END
  126.  
  127.         POPUP "&Colors"
  128.                 Begin
  129.                         Menuitem "Window Background",   IDM_BACKGROUND
  130.                         Menuitem "Black Squares",       IDM_BLACKSQUARE
  131.                         Menuitem "White Squares",       IDM_WHITESQUARE
  132.                         Menuitem "Black Pieces",        IDM_BLACKPIECE
  133.                         Menuitem "White Pieces",        IDM_WHITEPIECE
  134.                         Menuitem "Text Color",          IDM_TEXT
  135.                         Menuitem SEPARATOR
  136.                         Menuitem "Default Colors",      IDM_DEFAULT
  137.                 end
  138.  
  139.         MENUITEM "Hi&nt",                                 MSG_CHESS_HINT
  140.  
  141.         POPUP "&Help"
  142.                 Begin
  143.                         Menuitem "&Index\tF1",           MSG_HELP_INDEX
  144.                         Menuitem "Using &Help",          MSG_HELP_HELP
  145.                         Menuitem SEPARATOR
  146.                         MENUITEM "A&bout Chess...",      MSG_CHESS_ABOUT
  147.                 end
  148.      END
  149.  
  150. STRINGTABLE
  151.  begin
  152.         IDS_CHESS,         "Chess"
  153.         IDS_ILLEGALMOVE,   "Illegal move"
  154.         IDS_AMBIGUOUSMOVE, "Ambiguous move"
  155.         IDS_OBAE,          "Warning: Opening book too large"
  156.         IDS_OBNF,          "Warning: Opening book not found"
  157.         IDS_UNABLESAVE,    "Unable to save game"
  158.         IDS_UNABLELIST,    "Unable to list game"
  159.         IDS_DRAWGAME,      "Draw Game"
  160.         IDS_YOUWIN,        "Opponent mates"
  161.         IDS_COMPUTERWIN,   "Computer mates"
  162.         IDS_MATESOON,      "Oppenent will soon mate"
  163.         IDS_COMPMATE,      "Computer will soon mate"
  164.         IDS_TTABLEAF,      "ttable Allocation Failed"
  165.         IDS_SQDATAAF,      "sqdata Allocation Failed"
  166.         IDS_HISTORYAF,     "History Allocation Failed"
  167.         IDS_TREEAF,        "Tree Allocation Failed"
  168.         IDS_GAMEAF,        "Game List Allocation Failed"
  169.         IDS_LOADFAILED,    "Loading saved game failed"
  170.         IDS_SETAWIN,       "Set A Window"
  171.         IDS_SETBWIN,       "Set B Window"
  172.         IDS_SETCONTEMPT,   "Set Contempt"
  173.         IDS_MAXSEARCH,     "Set maximun search depth"
  174.         IDS_INITERROR,     "Initialization error"
  175.  end
  176.  
  177.  
  178. Chess ACCELERATORS
  179. begin
  180.         VK_BACK,        MSG_CHESS_UNDO,   VIRTKEY
  181.         VK_BACK,        MSG_CHESS_REMOVE, VIRTKEY, ALT
  182.         VK_F1,          MSG_HELP_INDEX,   VIRTKEY
  183. end
  184.