Mistři v programování na #hovnokod

Delphi #619

// Before 
  if even then 
    begin
     if (GameAreaForm.Area.ColCount mod 2 = 0) then isstandart:=true
     else isstandart:=false; 
    end
  else
     begin
       if (GameAreaForm.Area.ColCount mod 2 = 0) then isstandart:=false
       else isstandart:=true;
     end;

// After
if (even) then isstandart:=not(GameAreaForm.Area.ColCount mod 2 = 0);
else isstandart:=(GameAreaForm.Area.ColCount mod 2 = 0);

HovnoKod,