Einzelnen Beitrag anzeigen

Benutzerbild von Binärbaum
Binärbaum

Registriert seit: 19. Jan 2005
Ort: Elstra
764 Beiträge
 
Delphi 7 Enterprise
 
#15

Re: Ideen zur Schach KI

  Alt 12. Apr 2005, 11:51
Zitat von Cicaro:
kurz skizziert:

Delphi-Quellcode:
type
TFigure = record
Pos:Tpoint;
Info:Integer;
end;

TFields = array[1..8,1..8] of TFigure;

TBoard = class
 Fields:TFields;
parent:TBoard;
Children:array of TBoard;
//...
end;

// zur Darstellung
TChessBoard = class
Image:Timage;
Board:TBoard;
//...
end;
da wir gerade dabei sind, was hältst du davon ?
Naja, ...
Wozu speicherst du in TFigure die Position in pos, wenn diese doch schon aus den Indices von TFields hervorgeht?
There are exactly 10 kinds of people: those who understand binary, and those who don't.
---
"Software reift beim Kunden. Bei Hardware ist es anders: Hardware fault beim Kunden." - Rainer G. Spallek
  Mit Zitat antworten Zitat