Ejemplo n.º 1
0
 private void FindBestMoveEnd <Igra>(FindBestMoveCookie <Igra> cookieCallBack, MoveExt move)
 {
     if (move != null)
     {
         move.TimeToCompute = DateTime.Now - cookieCallBack.m_dtStartFinding;
     }
     cookieCallBack.m_oriAction(cookieCallBack.m_oriCookie, move);
 }
Ejemplo n.º 2
0
 public void NadjiNajboljiPotez()
 {
     cookieCallBack = new FindBestMoveCookie <Igra>((x, y) => FindBestMoveEnd(x, y), this);
     bool potez = CBoard.FindBestMove(Igrac2PlayerE(trenutniIgrac), GetSearchMode(), Dispatcher.CurrentDispatcher, (x, y) => FindBestMoveEnd(x, y), cookieCallBack);
 }