⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 winport.txt

📁 GNU国际象棋C++源代码Windows版的
💻 TXT
字号:
Porting GNU Chess 4.0 to Windows

Most of the original code has been changed very little, except main.c, the
screen display code and the InputCommand function. The main function is now
WinMain. WinMain is a bit unorthodox in that it contains no message loop.
InputCommand, search, EditBoard and Replay contain message loops. This avoids
a lot of fiddling around with the code because the original program flow is
unchanged. WinMain contains the same loop (with some extra code) as found in
the original main function, which alternately calls InputCommand and
SelectMove. In InputCommand, EditBoard and Replay, the message loop continues
until WndProc places a value in command. The search function checks for
messages periodically.

The only new source files are dialogs.c, gnuchess.rc, the icon (from Chess
3.21) and the bitmaps. There are six bitmap files for each piece: a mask and
a detail bitmap in three sizes, 40x40, 60x60 and 80x80. These are derived
from the bitmaps used for winboard. I thought the pawns were a little
imposing so I chopped the bottom off. The width of the Queen has been reduced
so it doesn't hang over the edge of square at the back of the board.

Enjoy!

Conor McCarthy (C.McCarthy@sct.gu.edu.au)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -