Changeset 17 for trunk/Forms/UFormMain.pas
- Timestamp:
- Oct 5, 2019, 12:17:17 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r12 r17 59 59 40: MovedCount := Core.Game.MoveAll(drDown); 60 60 end; 61 if MovedCount > 0 then Core.Game.FillRandom Cell;62 if not Core.Game.CanMove and (Core.Game. GetEmptyCellsCount = 0) then61 if MovedCount > 0 then Core.Game.FillRandomTile; 62 if not Core.Game.CanMove and (Core.Game.Board.GetEmptyTilesCount = 0) then 63 63 Core.Game.GameOver; 64 if (not Core.Game.Won) and (Core.Game. GetHighestCellValue >= 2048) then64 if (not Core.Game.Won) and (Core.Game.Board.GetHighestTileValue >= 2048) then 65 65 Core.Game.Win; 66 66 end;
Note:
See TracChangeset
for help on using the changeset viewer.