Skip to content

Commit 8802b6d

Browse files
committed
Fix typos
1 parent d510f36 commit 8802b6d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/Extractor/Program.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ let main args =
423423
|> Array.ofSeq
424424
items |> Array.sortInPlaceBy (snd >> _.Id)
425425

426-
printfn "Successfully parsed all crops and items. Proced to output the data file and images? [y/N] "
426+
printfn "Successfully parsed all crops and items. Proceed to output the data file and images? [y/N] "
427427

428428
let writeImages =
429429
match System.Console.ReadLine().ToLower() with

src/WebApp/Info/Info.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Put together, a well formed solution must plant crops in the following form/orde
257257

258258
## Solution
259259
Stardew Valley Stonks uses an integer [linear programming](https://en.wikipedia.org/wiki/Linear_programming) solver to find the optimal solution.
260-
This is in contrast to a [dynammic programming](https://en.wikipedia.org/wiki/Dynamic_programming) approach
260+
This is in contrast to a [dynamic programming](https://en.wikipedia.org/wiki/Dynamic_programming) approach
261261
which could become more and more unwieldy as the number and types of constraints increase — a situation ripe for bugs.
262262
By formulating the problem in terms of a linear programming problem,
263263
the numerous constraints can be described in a more declarative fashion.
@@ -286,7 +286,7 @@ algorithm is used to piece together a sequence of non-overlapping subproblems th
286286
> - and was not a WebAssembly port of an existing solver (these tend to have large bundle sizes which is not ideal)
287287
>
288288
> While the solver linked above is wonderful, its performance, however, was lacking for this use case.
289-
> That is, the solver should idealy be able solve all subproblems in under 100ms to provide
289+
> That is, the solver should ideally be able solve all subproblems in under 100ms to provide
290290
> immediate, interactive feedback to the user which is constantly editing settings.
291291
> Because of this, I made [my own](https://github.com/IanManske/YALPS) linear programming solver based upon the one linked above.
292292
> I targeted any low hanging fruit for performance improvement,

src/WebApp/Optimizer.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Put together, the variables should model the following timeline of harvests/crop
5454
- harvests of a regrow crop for the remaining days/season(s)
5555
5656
All latter seasons in the dateSpan must be covered by bridge harvests or regrow crops as to carry over the fertilizer.
57-
If this is not possible, then no subproblem is genereated/solved for the given dateSpan.
57+
If this is not possible, then no subproblem is generated/solved for the given dateSpan.
5858
5959
Taking the sequence of non-overlapping solved subproblems that provide the maximum profit
6060
yields the final optimal solution for the given game data and settings.

src/WebApp/Query.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -805,9 +805,9 @@ module private ProfitSummaryCalc =
805805
seedCostAndQuantity |> Array.sortInPlaceWith (compareBy _.OpportunityCostPerSeed)
806806
seedCostAndQuantity
807807

808-
let private partitionQuantitesForSeeds data settings crop seedPrice prices quantites harvests =
808+
let private partitionQuantitiesForSeeds data settings crop seedPrice prices quantities harvests =
809809
let items = Crop.items crop
810-
let seedCostAndQuantity = seedCostAndQuantityData data settings crop seedPrice items prices quantites
810+
let seedCostAndQuantity = seedCostAndQuantityData data settings crop seedPrice items prices quantities
811811

812812
let quantitiesConsumedForSeeds = items |> Array.map (fun _ -> Array.zeroCreate Quality.count)
813813
let mutable seedsLeft = float (if Crop.regrows crop then 1u else harvests)
@@ -820,7 +820,7 @@ module private ProfitSummaryCalc =
820820
i <- i + 1
821821

822822
let quantitiesConsumedForSeeds = quantitiesConsumedForSeeds |> Array.map Qualities.wrap
823-
let soldQuantities = (quantites, quantitiesConsumedForSeeds) ||> Array.map2 (Qualities.map2 (-))
823+
let soldQuantities = (quantities, quantitiesConsumedForSeeds) ||> Array.map2 (Qualities.map2 (-))
824824
let quantitiesConsumedForSeeds =
825825
Array.zip items quantitiesConsumedForSeeds
826826
|> Array.filter (fun (_, quantities) -> quantities <> Qualities.zero)
@@ -835,7 +835,7 @@ module private ProfitSummaryCalc =
835835

836836
let soldQuantities, quantitiesForSeeds, seedsBought =
837837
if makeSeeds
838-
then partitionQuantitesForSeeds data settings crop seedPrice prices quantities harvests
838+
then partitionQuantitiesForSeeds data settings crop seedPrice prices quantities harvests
839839
else quantities, [||], 0.0
840840

841841
let profit = profitCalc prices soldQuantities

0 commit comments

Comments
 (0)