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

📄 edis_move.html

📁 国际象棋程序,解压到当前目录,在matlab窗口输入chess即可应用
💻 HTML
字号:
<html xmlns:mwsh="http://www.mathworks.com/namespace/mcode/v1/syntaxhighlight.dtd">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
      <!--
This HTML is auto-generated from an M-file.
To make changes, update the M-file and republish this document.
      -->
      <title>EDIs_move</title>
      <meta name="generator" content="MATLAB 7.0.4">
      <meta name="date" content="2006-03-24">
      <meta name="m-file" content="script_EDIs_move"><style>
body {
  background-color: white;
  margin:10px;
}
h1 {
  color: #990000; 
  font-size: x-large;
}
h2 {
  color: #990000;
  font-size: medium;
}
p.footer {
  text-align: right;
  font-size: xx-small;
  font-weight: lighter;
  font-style: italic;
  color: gray;
}

pre.codeinput {
  margin-left: 30px;
}

span.keyword {color: #0000FF}
span.comment {color: #228B22}
span.string {color: #A020F0}
span.untermstring {color: #B20000}
span.syscmd {color: #B28C00}

pre.showbuttons {
  margin-left: 30px;
  border: solid black 2px;
  padding: 4px;
  background: #EBEFF3;
}

pre.codeoutput {
  color: gray;
  font-style: italic;
}
pre.error {
  color: red;
}

/* Make the text shrink to fit narrow windows, but not stretch too far in 
wide windows.  On Gecko-based browsers, the shrink-to-fit doesn't work. */ 
p,h1,h2,div {
  /* for MATLAB's browser */
  width: 600px;
  /* for Mozilla, but the "width" tag overrides it anyway */
  max-width: 600px;
  /* for IE */
  width:expression(document.body.clientWidth > 620 ? "600px": "auto" );
}

    </style></head>
   <body>
      <h1>EDIs_move</h1>
      <introduction>
         <p>EDIs_move   Executes EDIs move and updates the game history</p>
      </introduction>
      <h2>Contents</h2>
      <div>
         <ul>
            <li><a href="#1">Syntax</a></li>
            <li><a href="#2">Description</a></li>
            <li><a href="#5">Used Parameters</a></li>
            <li><a href="#7">Example</a></li>
            <li><a href="#8">See also</a></li>
            <li><a href="#9">Signature</a></li>
         </ul>
      </div>
      <h2>Syntax<a name="1"></a></h2><pre>EDIs_move</pre><h2>Description<a name="2"></a></h2>
      <p>EDIs move is executed and the game history is updated.</p>
      <p>In this version EDI is pretty greedy. He looks whether there is something to "eat"(beat). If there is something to eat, he
         does without regard, whether he will loose something or even wether he gets himself into a check. Hence, illegal moves can
         occure. Actually I implemented already a "is_in_check" function (used for the castling). In one of my next steps I will integrate
         it here.
      </p>
      <p>How does EDI work? For each of his figures he looks out for the best move. The best move for each figues is determined in
         each corresponding figure classe (i.e. Knight). From all the best moves he chooses the one which promisses the highest gain.
         Right now he looks only half a move ahead.
      </p>
      <h2>Used Parameters<a name="5"></a></h2>
      <div>
         <ul>
            <li>global board ... chess board and related information</li>
            <li>global EDIs ... global information about EDI (i.e. color)</li>
            <li>global history ... game history (all the past moves)</li>
         </ul>
      </div>
      <h2>Example<a name="7"></a></h2>
      <p>Let's say, we are in the middle of a game. Then EDI computes the next half-move, performs it and also records it.</p>
      <h2>See also<a name="8"></a></h2>
      <p><a href="Chess.html">Chess</a>, <a href="stopCursor.html">stopCursor</a>, <a href="Knight.html">Knight</a>, <a href="addHistoryMove.html">addHistoryMove</a></p>
      <h2>Signature<a name="9"></a></h2>
      <div>
         <ul>
            <li><b>Author:</b> W.Garn
            </li>
            <li><b>E-Mail:</b> <a href="mailto:wgarn@yahoo.com">wgarn@yahoo.com</a> Date: 2006/03/23 12:00:00
            </li>
         </ul>
      </div>
      <div>
         <ul>
            <li><b>Copyright</b> 2006 W.Garn
            </li>
         </ul>
      </div>
      <p class="footer"><br>
         Published with wg_publish; V1.0<br></p>
      <!--
##### SOURCE BEGIN #####
%% EDIs_move
% EDIs_move   Executes EDIs move and updates the game history
%% Syntax
%  EDIs_move
%% Description
% EDIs move is executed and the game history is updated.
%%
% In this version EDI is pretty greedy. He looks whether there is
% something to "eat"(beat). If there is something to eat, he does without
% regard, whether he will loose something or even wether he gets himself
% into a check. Hence, illegal moves can occure.
% Actually I implemented already a "is_in_check" function (used for the
% castling). In one of my next steps I will integrate it here.
%%
% How does EDI work? For each of his figures he looks out for the best
% move. The best move for each figues is determined in each corresponding
% figure classe (i.e. Knight). From all the best moves he chooses the one
% which promisses the highest gain. Right now he looks only half a move
% ahead.
%%
%% Used Parameters
%%
% * global board ... chess board and related information
% * global EDIs ... global information about EDI (i.e. color)
% * global history ... game history (all the past moves)
%%
%% Example
% Let's say, we are in the middle of a game. Then EDI computes the next
% half-move, performs it and also records it.
%%
%% See also
% Chess, stopCursor, Knight, addHistoryMove
%%
%% Signature
%%
% * *Author:* W.Garn
% * *E-Mail:* wgarn@yahoo.com
% Date: 2006/03/23 12:00:00
%%
%%
% * *Copyright* 2006 W.Garn
%%
%

##### SOURCE END #####
-->
   </body>
</html>

⌨️ 快捷键说明

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