Changeset 17 for trunk/Forms
- Timestamp:
- Oct 5, 2019, 12:17:17 PM (5 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 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; -
trunk/Forms/UFormNew.pas
r15 r17 45 45 procedure TFormNew.Load(Game: TGame); 46 46 begin 47 ComboBoxSize.ItemIndex := Game. Size.X - 3;47 ComboBoxSize.ItemIndex := Game.Board.Size.X - 3; 48 48 end; 49 49 50 50 procedure TFormNew.Save(Game: TGame); 51 51 begin 52 Game. Size := Point(3 + ComboBoxSize.ItemIndex, 3 + ComboBoxSize.ItemIndex);52 Game.Board.Size := Point(3 + ComboBoxSize.ItemIndex, 3 + ComboBoxSize.ItemIndex); 53 53 end; 54 54
Note:
See TracChangeset
for help on using the changeset viewer.