Changeset 109 for trunk/Board.pas
- Timestamp:
- Dec 10, 2024, 10:38:11 AM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Board.pas
r105 r109 20 20 procedure Clear; 21 21 procedure ClearMerged; 22 function GetBiggestTile: Integer; 22 23 function GetValueSum: Integer; 23 24 function GetHighestTileValue: Integer; … … 122 123 end; 123 124 125 function TBoard.GetBiggestTile: Integer; 126 var 127 X, Y: Integer; 128 begin 129 Result := 0; 130 for Y := 0 to Size.Y - 1 do 131 for X := 0 to Size.X - 1 do 132 if not Tiles[Y, X].Disabled and 133 not Tiles[Y, X].Unmergeable and 134 (Tiles[Y, X].Value > Result) then Result := Tiles[Y, X].Value; 135 end; 136 124 137 function TBoard.GetValueSum: Integer; 125 138 var
Note:
See TracChangeset
for help on using the changeset viewer.