home *** CD-ROM | disk | FTP | other *** search
- /*
- C source for GNU CHESS
-
- Revision: 1990-09-30
-
- Modified by Daryl Baker for use in MS WINDOWS environment
-
- Revision: 2-22-1995
-
- Modified by Jake Oshins for use in Win32 environments.
-
- This file is part of CHESS.
-
- CHESS is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY. No author or distributor accepts responsibility to anyone for
- the consequences of using it or for whether it serves any particular
- purpose or works at all, unless he says so in writing. Refer to the CHESS
- General Public License for full details.
-
- Everyone is granted permission to copy, modify and redistribute CHESS, but
- only under the conditions described in the CHESS General Public License.
- A copy of this license is supposed to have been given to you along with
- CHESS so you can know your rights and responsibilities. It should be in a
- file named COPYING. Among other things, the copyright notice and this
- notice must be preserved on all copies.
- */
-
- //Microsoft Visual C++ generated resource script.
- //
- #include "resource.h"
-
- #define APSTUDIO_READONLY_SYMBOLS
- /////////////////////////////////////////////////////////////////////////////
- //
- // Generated from the TEXTINCLUDE 2 resource.
- //
- #define APSTUDIO_HIDDEN_SYMBOLS
- #include "windows.h"
- #undef APSTUDIO_HIDDEN_SYMBOLS
- #include "chess.h"
- #include "saveopen.h"
- #include "color.h"
- #include "timecnt.h"
- #include "stats.h"
-
- /////////////////////////////////////////////////////////////////////////////
- #undef APSTUDIO_READONLY_SYMBOLS
-
-
- /////////////////////////////////////////////////////////////////////////////
- //
- // Icon
- //
-
- CHESS ICON DISCARDABLE "Chess.ico"
-
- /////////////////////////////////////////////////////////////////////////////
- //
- // Bitmap
- //
-
- PAWN BITMAP MOVEABLE PURE "pawn.bmp"
- ROOK BITMAP MOVEABLE PURE "rook.bmp"
- KNIGHT BITMAP MOVEABLE PURE "knight.bmp"
- BISHOP BITMAP MOVEABLE PURE "bishop.bmp"
- QUEEN BITMAP MOVEABLE PURE "queen.bmp"
- KING BITMAP MOVEABLE PURE "king.bmp"
- PAWNM BITMAP MOVEABLE PURE "pawnm.bmp"
- ROOKM BITMAP MOVEABLE PURE "rookm.bmp"
- KNIGHTM BITMAP MOVEABLE PURE "knightm.bmp"
- BISHOPM BITMAP MOVEABLE PURE "bishopm.bmp"
- QUEENM BITMAP MOVEABLE PURE "queenm.bmp"
- KINGM BITMAP MOVEABLE PURE "kingm.bmp"
- PAWNO BITMAP MOVEABLE PURE "pawno.bmp"
- ROOKO BITMAP MOVEABLE PURE "rooko.bmp"
- KNIGHTO BITMAP MOVEABLE PURE "knighto.bmp"
- BISHOPO BITMAP MOVEABLE PURE "bishopo.bmp"
- QUEENO BITMAP MOVEABLE PURE "queeno.bmp"
- KINGO BITMAP MOVEABLE PURE "kingo.bmp"
-
- /////////////////////////////////////////////////////////////////////////////
- //
- // Dialog
- //
-
- AboutBox DIALOG DISCARDABLE 19, 18, 218, 147
- STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
- CAPTION "GNU Chess 3.21 for Windows"
- FONT 8, "System"
- BEGIN
- DEFPUSHBUTTON "OK",1,93,122,32,14,WS_GROUP
- ICON "CHESS",IDC_STATIC,20,12,18,20
- CTEXT "Daryl K. Baker",105,57,4,107,8,NOT WS_GROUP
- CTEXT "Wed Dec 28 02:03:55 1989",106,57,13,107,8,NOT WS_GROUP
- CTEXT "Copyright \251 1985-1991 Free Software Foundation Inc.",
- 108,0,76,218,8,NOT WS_GROUP
- LTEXT "GNU Chess 2nd version original copyright \251 1986 John Stanback",
- 109,2,104,215,8,NOT WS_GROUP
- CONTROL "",110,"Static",SS_BLACKFRAME,0,69,216,1
- CTEXT "Compiled with Microsoft C 6.00ax",111,57,47,107,8,NOT
- WS_GROUP
- CTEXT "Linked with Microsoft Win32 SDK",112,57,55,107,8,NOT
- WS_GROUP
- LTEXT "GNU Chess original copyright \251 1985 Stuart Cracraft",
- 113,3,93,215,8,NOT WS_GROUP
- LTEXT "Windows version additional copyright \251 1990-1991 Daryl Baker",
- 114,3,84,215,8,NOT WS_GROUP
- LTEXT "Win32 version: Jake Oshins",IDC_STATIC,65,28,95,8
- END
-
- FILESAVE DIALOG DISCARDABLE 10, 10, 180, 54
- STYLE WS_POPUP | WS_DLGFRAME
- BEGIN
- LTEXT "Save File &Name As:",-1,6,4,84,12
- LTEXT "",IDD_FPATH,90,4,78,12
- EDITTEXT IDD_FNAME,6,20,104,12,ES_AUTOHSCROLL
- DEFPUSHBUTTON "OK",IDOK,124,20,50,14,WS_GROUP
- PUSHBUTTON "Cancel",IDCANCEL,124,36,50,14,WS_GROUP
- END
-
- FILEOPEN DIALOG DISCARDABLE 6, 9, 219, 106
- STYLE WS_POPUP | WS_DLGFRAME
- BEGIN
- LTEXT "Open File &Name:",-1,7,4,61,10
- EDITTEXT IDD_FNAME,70,3,83,12,ES_AUTOHSCROLL
- LTEXT "&Files:",-1,7,24,38,10
- LTEXT "",IDD_FPATH,70,24,143,12
- LISTBOX IDD_FLIST,7,36,60,65,LBS_SORT | WS_VSCROLL | WS_TABSTOP
- DEFPUSHBUTTON "&OK",IDOK,160,64,50,14,WS_GROUP
- PUSHBUTTON "&Cancel",IDCANCEL,160,87,50,14,WS_GROUP
- LISTBOX IDD_DLIST,73,52,68,49,LBS_SORT | WS_VSCROLL
- LTEXT "&Directories:",-1,73,39,53,10,NOT WS_GROUP
- END
-
- WILDFILEOPEN DIALOG DISCARDABLE 6, 9, 219, 106
- STYLE WS_POPUP | WS_DLGFRAME
- BEGIN
- LTEXT "Open File &Name:",-1,7,4,61,10
- EDITTEXT IDD_FNAME,70,3,83,12,ES_AUTOHSCROLL
- LTEXT "&Files:",-1,7,24,38,10
- LTEXT "",IDD_FPATH,70,19,143,12
- LISTBOX IDD_FLIST,7,36,60,65,LBS_SORT | WS_VSCROLL | WS_TABSTOP
- DEFPUSHBUTTON "&Browse",IDD_BROWSE,160,41,50,14
- PUSHBUTTON "&OK",IDOK,160,64,50,14,WS_GROUP
- PUSHBUTTON "&Cancel",IDCANCEL,160,87,50,14,WS_GROUP
- LISTBOX IDD_DLIST,73,52,68,49,LBS_SORT | WS_VSCROLL
- LTEXT "&Directories:",-1,73,39,53,10,NOT WS_GROUP
- END
-
- NUMBERDLG DIALOG DISCARDABLE 10, 10, 180, 54
- STYLE WS_POPUP | WS_DLGFRAME
- BEGIN
- CTEXT "",IDD_CHAR,9,4,162,12
- EDITTEXT IDD_INT,6,20,104,12,ES_AUTOHSCROLL
- DEFPUSHBUTTON "OK",IDOK,124,20,50,14,WS_GROUP
- PUSHBUTTON "Cancel",IDCANCEL,124,36,50,14,WS_GROUP
- END
-
- COLOR DIALOG DISCARDABLE 10, 20, 139, 177
- STYLE WS_POPUP | WS_DLGFRAME
- BEGIN
- CTEXT "Window Background Color",IDD_HEADING,0,2,139,12,NOT
- WS_GROUP
- GROUPBOX "Color",203,6,15,128,130
- RADIOBUTTON "Black",CNT_BLACK,18,26,28,12,WS_TABSTOP
- RADIOBUTTON "Blue",CNT_BLUE,18,40,28,12,WS_TABSTOP
- RADIOBUTTON "Green",CNT_GREEN,18,54,28,12,WS_TABSTOP
- RADIOBUTTON "Cyan",CNT_CYAN,18,68,28,12,WS_TABSTOP
- RADIOBUTTON "Red",CNT_RED,18,82,28,12,WS_TABSTOP
- RADIOBUTTON "Pink",CNT_PINK,18,96,28,12,WS_TABSTOP
- RADIOBUTTON "Yellow",CNT_YELLOW,18,110,38,12,WS_TABSTOP
- RADIOBUTTON "Pale Gray",CNT_PALEGRAY,18,124,51,12,WS_TABSTOP
- RADIOBUTTON "Dark Gray",CNT_DARKGRAY,74,26,54,12,WS_TABSTOP
- RADIOBUTTON "Dark Blue",CNT_DARKBLUE,74,40,54,12,WS_TABSTOP
- RADIOBUTTON "Dark Green",CNT_DARKGREEN,74,54,48,12,WS_TABSTOP
- RADIOBUTTON "Dark Cyan",CNT_DARKCYAN,74,68,54,12,WS_TABSTOP
- RADIOBUTTON "Dark Red",CNT_DARKRED,74,82,54,12,WS_TABSTOP
- RADIOBUTTON "Dark Pink",CNT_DARKPINK,74,97,54,12,WS_TABSTOP
- RADIOBUTTON "Brown",CNT_BROWN,74,110,54,12,WS_TABSTOP
- RADIOBUTTON "White",CNT_WHITE,74,124,54,12,WS_TABSTOP
- DEFPUSHBUTTON "OK",IDD_OK,17,154,38,14
- PUSHBUTTON "Cancel",IDD_CANCEL,85,154,38,14
- END
-
- TIMECONTROL DIALOG DISCARDABLE 48, 48, 180, 126
- STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
- CAPTION "Set Time Limits"
- BEGIN
- GROUPBOX "Number of moves",201,10,11,160,32
- GROUPBOX "Time limit",202,10,51,160,32
- RADIOBUTTON "1",TMDLG_1MOV,22,24,20,12,WS_TABSTOP
- RADIOBUTTON "10",TMDLG_10MOV,52,24,20,12,WS_TABSTOP
- RADIOBUTTON "20",TMDLG_20MOV,81,24,20,12,WS_TABSTOP
- RADIOBUTTON "40",TMDLG_40MOV,112,24,20,12,WS_TABSTOP
- RADIOBUTTON "60",TMDLG_60MOV,141,24,20,12,WS_TABSTOP
- RADIOBUTTON "5",TMDLG_5MIN,21,63,20,12,WS_TABSTOP
- RADIOBUTTON "15",TMDLG_15MIN,51,63,20,12,WS_TABSTOP
- RADIOBUTTON "30",TMDLG_30MIN,81,63,20,12,WS_TABSTOP
- RADIOBUTTON "60",TMDLG_60MIN,111,63,20,12,WS_TABSTOP
- RADIOBUTTON "600",TMDLG_600MIN,141,63,23,12,WS_TABSTOP
- DEFPUSHBUTTON "OK",IDOK,28,97,38,14
- PUSHBUTTON "Cancel",IDCANCEL,116,97,38,14
- END
-
- STATS DIALOG DISCARDABLE 16, 28, 94, 133
- STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "Search statistics"
- BEGIN
- LTEXT "Depth:",100,4,5,32,8,NOT WS_GROUP
- LTEXT "Position:",101,4,16,32,8,NOT WS_GROUP
- LTEXT "Score:",109,4,27,32,8,NOT WS_GROUP
- LTEXT "Nodes:",104,4,38,32,8,NOT WS_GROUP
- LTEXT "Nodes/Sec:",110,4,49,40,8,NOT WS_GROUP
- GROUPBOX "Best line",102,4,60,85,68,WS_TABSTOP
- LTEXT "",BSTLINETEXT,6,70,82,57,NOT WS_GROUP
- LTEXT "Text",DEPTHTEXT,46,5,48,8,NOT WS_GROUP
- LTEXT "Text",POSITIONTEXT,46,16,48,8,NOT WS_GROUP
- LTEXT "Text",NODETEXT,46,38,48,8,NOT WS_GROUP
- LTEXT "Text",SCORETEXT,46,27,48,8,NOT WS_GROUP
- LTEXT "Text",NODESECTEXT,46,49,48,8,NOT WS_GROUP
- END
-
- REVIEW DIALOG DISCARDABLE 50, 31, 173, 130
- STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU
- CAPTION "Review game moves"
- BEGIN
- LISTBOX 100,5,15,164,113,LBS_NOREDRAW | LBS_USETABSTOPS |
- WS_VSCROLL
- LTEXT "\tmove\tscore\tdepth\ttime",101,5,5,164,8,NOT WS_GROUP
- END
-
- TEST DIALOG DISCARDABLE 9, 26, 148, 51
- STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "Test speed"
- BEGIN
- LTEXT "Text",100,8,13,139,8,NOT WS_GROUP
- LTEXT "Text",101,8,38,139,8,NOT WS_GROUP
- LTEXT "Movelist Speed",102,8,5,59,8,NOT WS_GROUP
- LTEXT "Capturelist Speed",104,8,29,73,8,NOT WS_GROUP
- END
-
- PAWNPROMOTE DIALOG DISCARDABLE 24, 23, 164, 55
- STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU
- CAPTION "Promote Pawn"
- BEGIN
- RADIOBUTTON "Knight",100,4,10,38,12,WS_TABSTOP
- RADIOBUTTON "Bishop",101,44,10,36,12,WS_TABSTOP
- RADIOBUTTON "Rook",102,85,10,28,12,WS_TABSTOP
- RADIOBUTTON "Queen",103,123,10,35,12,WS_TABSTOP
- DEFPUSHBUTTON "Ok",IDOK,63,33,38,14
- END
-
- MANUALDLG DIALOG DISCARDABLE 73, 53, 133, 48
- STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "Enter Move"
- BEGIN
- EDITTEXT 100,33,9,64,12
- DEFPUSHBUTTON "OK",IDOK,20,28,28,14
- PUSHBUTTON "Cancel",IDCANCEL,85,28,28,14
- END
-
-
- /////////////////////////////////////////////////////////////////////////////
- //
- // Menu
- //
-
- CHESS MENU DISCARDABLE
- BEGIN
- POPUP "&File"
- BEGIN
- MENUITEM "&New", MSG_CHESS_NEW
- MENUITEM "&Open...", MSG_CHESS_GET
- MENUITEM "&Save...", MSG_CHESS_SAVE
- MENUITEM "&List...", MSG_CHESS_LIST
- MENUITEM SEPARATOR
- MENUITEM "E&xit", MSG_CHESS_QUIT
- END
- POPUP "&Edit"
- BEGIN
- MENUITEM "&Setup Board", MSG_CHESS_EDIT
- MENUITEM "R&eview Game...", MSG_CHESS_REVIEW
- MENUITEM SEPARATOR
- MENUITEM "&Undo\tBksp", MSG_CHESS_UNDO
- MENUITEM "&Remove\tALT+Bksp", MSG_CHESS_REMOVE
- MENUITEM SEPARATOR
- MENUITEM "&Force", MSG_CHESS_FORCE
- END
- POPUP "&Options"
- BEGIN
- MENUITEM "&Tone", MSG_CHESS_BEEP
- MENUITEM "C&oordinates", MSG_CHESS_COORD
- MENUITEM "&Search Stats", MSG_CHESS_POST
- MENUITEM "T&est Speed", MSG_CHESS_TEST
- MENUITEM SEPARATOR
- MENUITEM "&Hash", MSG_CHESS_HASH
- MENUITEM "&Both", MSG_CHESS_BOTH
- MENUITEM "Boo&k", MSG_CHESS_BOOK
- MENUITEM SEPARATOR
- MENUITEM "&A Window...", MSG_CHESS_AWIN
- MENUITEM "&B Window...", MSG_CHESS_BWIN
- MENUITEM "&Contemp...", MSG_CHESS_CONTEMP
- END
- POPUP "&Skill"
- BEGIN
- MENUITEM "&Time...", IDM_TIMECONTROL
- MENUITEM SEPARATOR
- MENUITEM "&Random", MSG_CHESS_RANDOM
- MENUITEM "&Easy", MSG_CHESS_EASY
- MENUITEM "&Depth...", MSG_CHESS_DEPTH
- END
- POPUP "S&ide"
- BEGIN
- MENUITEM "&Reverse", MSG_CHESS_REVERSE
- MENUITEM "&Switch", MSG_CHESS_SWITCH
- MENUITEM "&Black", MSG_CHESS_BLACK
- MENUITEM "&White", MSG_CHESS_WHITE
- END
- POPUP "&Colors"
- BEGIN
- MENUITEM "Window Background", IDM_BACKGROUND
- MENUITEM "Black Squares", IDM_BLACKSQUARE
- MENUITEM "White Squares", IDM_WHITESQUARE
- MENUITEM "Black Pieces", IDM_BLACKPIECE
- MENUITEM "White Pieces", IDM_WHITEPIECE
- MENUITEM "Text Color", IDM_TEXT
- MENUITEM SEPARATOR
- MENUITEM "Default Colors", IDM_DEFAULT
- END
- MENUITEM "Hi&nt", MSG_CHESS_HINT
- POPUP "&Help"
- BEGIN
- MENUITEM "&Index\tF1", MSG_HELP_INDEX
- MENUITEM "Using &Help", MSG_HELP_HELP
- MENUITEM SEPARATOR
- MENUITEM "A&bout Chess...", MSG_CHESS_ABOUT
- END
- END
-
-
- /////////////////////////////////////////////////////////////////////////////
- //
- // Accelerator
- //
-
- CHESS ACCELERATORS MOVEABLE PURE
- BEGIN
- VK_BACK, MSG_CHESS_UNDO, VIRTKEY
- VK_BACK, MSG_CHESS_REMOVE, VIRTKEY, ALT
- VK_F1, MSG_HELP_INDEX, VIRTKEY
- END
-
-
- #ifdef APSTUDIO_INVOKED
- /////////////////////////////////////////////////////////////////////////////
- //
- // TEXTINCLUDE
- //
-
- 1 TEXTINCLUDE DISCARDABLE
- BEGIN
- "resource.h\0"
- END
-
- 2 TEXTINCLUDE DISCARDABLE
- BEGIN
- "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
- "#include ""windows.h""\r\n"
- "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
- "#include ""chess.h""\r\n"
- "#include ""saveopen.h""\r\n"
- "#include ""color.h""\r\n"
- "#include ""timecnt.h""\r\n"
- "#include ""stats.h""\r\n"
- "\0"
- END
-
- 3 TEXTINCLUDE DISCARDABLE
- BEGIN
- "\r\n"
- "\0"
- END
-
- /////////////////////////////////////////////////////////////////////////////
- #endif // APSTUDIO_INVOKED
-
-
- /////////////////////////////////////////////////////////////////////////////
- //
- // String Table
- //
-
- STRINGTABLE DISCARDABLE
- BEGIN
- IDS_ILLEGALMOVE "Illegal move"
- IDS_AMBIGUOUSMOVE "Ambiguous move"
- IDS_OBAE "Warning: Opening book too large"
- IDS_OBNF "Warning: Opening book not found"
- IDS_UNABLESAVE "Unable to save game"
- IDS_UNABLELIST "Unable to list game"
- IDS_CHESS "Chess"
- IDS_DRAWGAME "Draw Game"
- END
-
- STRINGTABLE DISCARDABLE
- BEGIN
- IDS_YOUWIN "Opponent mates"
- IDS_COMPUTERWIN "Computer mates"
- IDS_MATESOON "Oppenent will soon mate"
- IDS_COMPMATE "Computer will soon mate"
- IDS_TTABLEAF "ttable Allocation Failed"
- IDS_SQDATAAF "sqdata Allocation Failed"
- IDS_HISTORYAF "History Allocation Failed"
- IDS_TREEAF "Tree Allocation Failed"
- IDS_GAMEAF "Game List Allocation Failed"
- IDS_LOADFAILED "Loading saved game failed"
- IDS_SETAWIN "Set A Window"
- IDS_SETBWIN "Set B Window"
- IDS_SETCONTEMPT "Set Contempt"
- IDS_MAXSEARCH "Set maximun search depth"
- IDS_INITERROR "Initialization error"
- END
-
-
- #ifndef APSTUDIO_INVOKED
- /////////////////////////////////////////////////////////////////////////////
- //
- // Generated from the TEXTINCLUDE 3 resource.
- //
-
-
- /////////////////////////////////////////////////////////////////////////////
- #endif // not APSTUDIO_INVOKED
-
-