象棋chess有代码
象棋程序QT程序 void ConfigForm::initializeAll( CChessGame * game ) { QString str; const char** engines = NULL; chessGame = game; redIsMan = true; blackIsMan = true; blackOnTop = true; /* Initialize the combobox for search engines */ engines = game->getEngineList(); for (int i = 0; engines[i] != NULL; i++) { str = engines[i]; comboEngine->insertItem(str); } computerEngine = game->getBestEngine(); computerLevel = 3; updateUI(true); }
用户评论