Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Herd committed Mar 23, 2024
1 parent e525b32 commit 5f3b4f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<script type="module" crossorigin src="/diorama-2023/assets/index-d7371230.js"></script>
<script type="module" crossorigin src="/diorama-2023/assets/index-19ed0d5d.js"></script>
<link rel="stylesheet" href="/diorama-2023/assets/index-5d0ad71d.css">
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export const images = range(1, maxImages).map(n => `./images/${n}.jpg`)
export const maxComputationTime = 500 as Milliseconds
export const randomizeThreshold = 11 // if amount of pics is bigger we have too many permutations to iterate through, switch to random strategy
export const iconSize = 20
export const initialImageAmount = 8
export const initialImageAmount = 7
export const aspectRatioThreshold = 0.9

export const aspectRatioAndSize = ({ sizeHomogeneity, score }: Solution): Ord => {
return score * sizeHomogeneity
export const aspectRatioAndSize = ({ pictures, sizeHomogeneity, score }: Solution): Ord => {
return pictures.length <= 4 ? score : score * sizeHomogeneity
}

0 comments on commit 5f3b4f3

Please sign in to comment.