Ignore:
Timestamp:
Oct 12, 2019, 10:47:02 PM (5 years ago)
Author:
chronos
Message:
  • Added: New form accessible from menu Tools - Moves history with game moves history.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormComputer.pas

    r29 r31  
    1313  TGameTry = class
    1414    Game: TGame;
    15     Moves: array of TDirection;
     15    Moves: array of TMoveDirection;
    1616    constructor Create;
    1717    destructor Destroy; override;
     
    5858function TGameTry.GetFitness: Double;
    5959const
    60   DirWeight: array[TDirection] of Double = (0.25, -10000, 0.5, 0.75);
     60  DirWeight: array[TMoveDirection] of Double = (0, 0.25, -10000, 0.5, 0.75);
    6161var
    6262  I: Integer;
     
    221221procedure TFormComputer.TryAllDirections(GameTries: TGameTries; GameTry: TGameTry);
    222222var
    223   Direction: TDirection;
     223  Direction: TMoveDirection;
    224224  NewTry: TGameTry;
    225225begin
    226   for Direction := Low(TDirection) to High(TDirection) do begin
     226  for Direction := Low(TMoveDirection) to High(TMoveDirection) do begin
    227227    if GameTry.Game.CanMoveDirection(Direction) then begin
    228228      NewTry := TGameTry.Create;
Note: See TracChangeset for help on using the changeset viewer.