Changeset 88 for trunk/Forms


Ignore:
Timestamp:
Nov 16, 2014, 2:31:27 PM (10 years ago)
Author:
chronos
Message:
  • Modified: Change attack probability calculation to use cache of precalculated values to speed up calculation dramatically.
  • Added: Fallback as computer strategy element to withdraw border cells where enemy is stronger.
  • Modified: Test of polygon canvas method modification.
Location:
trunk/Forms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMove.lfm

    r75 r88  
    1414  object SpinEditOnce: TSpinEdit
    1515    Left = 208
    16     Height = 35
     16    Height = 32
    1717    Top = 40
    1818    Width = 98
     
    2323  object Label1: TLabel
    2424    Left = 16
    25     Height = 25
     25    Height = 22
    2626    Top = 40
    27     Width = 54
     27    Width = 46
    2828    Caption = 'Once:'
    2929    ParentColor = False
     
    5050  object Label2: TLabel
    5151    Left = 24
    52     Height = 25
     52    Height = 22
    5353    Top = 136
    54     Width = 100
     54    Width = 87
    5555    Caption = 'Every turn:'
    5656    ParentColor = False
     
    5858  object SpinEditRepeat: TSpinEdit
    5959    Left = 208
    60     Height = 35
     60    Height = 32
    6161    Top = 128
    6262    Width = 98
     
    131131  object Label3: TLabel
    132132    Left = 16
    133     Height = 25
     133    Height = 22
    134134    Top = 8
    135     Width = 145
     135    Width = 127
    136136    Caption = 'Win probability:'
    137137    ParentColor = False
     
    139139  object LabelWinProbability: TLabel
    140140    Left = 264
    141     Height = 25
     141    Height = 22
    142142    Top = 8
    143143    Width = 15
  • trunk/Forms/UFormMove.pas

    r72 r88  
    7878  LabelWinProbability.Caption :=
    7979    IntToStr(Round(Core.Game.AttackProbability(AttackCount + SpinEditOnce.Value,
    80     DefendCount, 1) * 100)) + ' %';
     80    DefendCount) * 100)) + ' %';
    8181end;
    8282
Note: See TracChangeset for help on using the changeset viewer.