- Code/Resource
- Windows Develop
- Linux-Unix program
- Internet-Socket-Network
- Web Server
- Browser Client
- Ftp Server
- Ftp Client
- Browser Plugins
- Proxy Server
- Email Server
- Email Client
- WEB Mail
- Firewall-Security
- Telnet Server
- Telnet Client
- ICQ-IM-Chat
- Search Engine
- Sniffer Package capture
- Remote Control
- xml-soap-webservice
- P2P
- WEB(ASP,PHP,...)
- TCP/IP Stack
- SNMP
- Grid Computing
- SilverLight
- DNS
- Cluster Service
- Network Security
- Communication-Mobile
- Game Program
- Editor
- Multimedia program
- Graph program
- Compiler program
- Compress-Decompress algrithms
- Crypt_Decrypt algrithms
- Mathimatics-Numerical algorithms
- MultiLanguage
- Disk/Storage
- Java Develop
- assembly language
- Applications
- Other systems
- Database system
- Embeded-SCM Develop
- FlashMX/Flex
- source in ebook
- Delphi VCL
- OS Develop
- MiddleWare
- MPI
- MacOS develop
- LabView
- ELanguage
- Software/Tools
- E-Books
- Artical/Document
CHECKDTA.H
Package: MSDN_VC98.zip [view]
Upload User: bangxh
Upload Date: 2007-01-31
Package Size: 42235k
Code Size: 3k
Category:
Windows Develop
Development Platform:
Visual C++
- // Some more defines
- #define PLAYER1 BLACK
- #define PLAYER2 RED
- // Game type definitions
- #define GAME_CHECKERS 0
- #define GAME_GIVEAWAY 1
- // Cursor states
- #define UNDEFINED_CURSOR -1
- #define NORMAL_CURSOR 1
- #define RESIZE_CURSOR 2
- #define RESIZE_RANGE 10 // How far from bottom right should resize
- // cursor be shown.
- // Data structures for Checkers.
- struct rGameStateRec
- {
- int iPlayerTurn; // Who's turn
- BOOL fPlayAsForm; // If we are currently a form
- BOOL fInitDone; // Game initialization over (when to use timer).
- BOOL fContinuable; // Is the turn continuable?
- BOOL fSetupMode; // Game in setup mode? Need for button processing
- BOOL fThinking; // Is the computer thinking?
- BOOL fPaused; // Is the game paused?
- BOOL fGameInProgress; // Did the game start? How to react to "File:New"
- BOOL fLMouseButtonDown; // Is the left mouse button currently down?
- BOOL fRMouseButtonDown; // Is the right mouse button currently down?
- BOOL fMoveInProgress; // Is the user in the middle of a move?
- BOOL fComputerBusy; // Is the computer thinking?
- BOOL fGameOver; // Is the game over?
- BOOL fMouseResizeInProgress; // Is the user resizing the board with the mouse?
- int iCursorState; // What state is the cursor in (resize, normal?)
- };
- struct rPlayerRec
- {
- int iPlayerType; // (ENUM) Human/Computer/Network
- int iUseOpeningBook; // (BOOL) Use the opening-book moves
- int iMemPositions; // (BOOL) Use memorized positions?
- int iUseMoveTheory; // (BOOL) Use move theory?
- int iUseMoveShuffling; // (BOOL) Use move shuffling
- int iUseEqualMoveSkipping; // (BOOL) Use Equal move skipping
- long lUseGoodMoveSkipping; // (LONG) Use Good move skipping
- int iMaxRecursionDepth; // (LONG) Max recursion depth
- int iUseAlphaBetaPruning; // (BOOL) Use alpha-beta pruning
- long lAlphaPruningOriginalDepth; // (LONG) Alpha pruning original depth
- long lAlphaPruningWidth; // (LONG) Alpha pruning width
- };
- struct rCheckConfigRec
- {
- int iGameType; // (INT) enum game type (Checkers/FoxGoose)
- int iMustJump; // (BOOL) Player must jump when available?
- int iBoardFlipped; // (BOOL) Board flipped?
- int iSquareSize; // (INT) Size of board square
- int iSetupPurgeBoards; // (BOOL) Purge boards after setup?
- int iMaxMoves;
- struct rPlayerRec rPlayer[3]; // Config info for players
- };