📄 huochessconsole.cpp
字号:
// HuoChessConsole.cpp : main project file.
/////////////////////////////////////////////
// Huo Chess //
// version: 0.6 //
// Year: 2008 //
// Place: Earth //
// Programmed by Spiros I. Kakos (huo) //
// License: TOTALLY FREEWARE! //
// Do anything you want with it! //
// Spread the knowledge! //
// Fix its bugs! //
// Sell it (if you can...)! //
// Call me for help! //
// Site: www.kakos.com.gr //
// www.kakos.eu //
/////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
// MAIN ALGORITHM
// 1. ComputerMove: Scans the chessboard and makes all possible moves.
// 2. CheckMove: It checks the legality and correctness of these possible moves.
// 3. (if thinking depth not reached) => call HumanMove
// 4. HumanMove: Checks and finds the best answer of the human opponent.
// 5. ComputerMove2: Scans the chessboard and makes all possible moves at the next thinking level.
// 6. CheckMove: It checks the legality and correctness of these possible moves.
// 7. (if thinking depth not reached) => call HumanMove
// 8. HumanMove: Checks and finds the best answer of the human opponent.
// 9. ComputerMove4: Scans the chessboard and makes all possible moves at the next thinking level.
// 10. CheckMove: It checks the legality and correctness of these possible moves.
// 11. (if thinking depth reached) => record the score of the final position.
// 12. (if score of position the best so far) => record the move as best move!
// 13. The algorithm continues until all possible moves are scanned.
// SET huo_debug to TRUE to see live the progress of the computer thought!
// FIND us at Codeproject (www.codeproject.com) or MSDN Code Gallery!
////////////////////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
using namespace System;
using namespace System::IO;
ref class HuoChess_main {
public:
////////////////////////////////////////////////////////////////////////////////////////////////////////
// DECLARE VARIABLES
////////////////////////////////////////////////////////////////////////////////////////////////////////
// the chessboard (=skakiera in Greek)
static array<String^, 2>^ Skakiera = gcnew array<String^, 2>(8,8); // 霓膣箸 疬磲赆 痫
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -