huochessconsole.cpp

来自「Huo Chess by Spiros (Spyridon) Kakos (ht」· C++ 代码 · 共 50 行

CPP
50
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?