Commit Graph

14 Commits

Author SHA1 Message Date
Karl Ostmo
54bf8f9215
Update spelling dictionary (#2011)
Re-ran this:
```
scripts/gen/autopopulate-spellchecker.sh
```
2024-07-06 02:44:10 +00:00
Nitin Prakash
8403cce726
Add hie.yaml to gitignore (#1975) 2024-06-23 19:02:07 +00:00
Noah Yorgey
53fe43d0b6
Delete stack.yaml (#1963)
Delete stack.yaml

Closes #1960.
2024-06-19 17:50:39 +00:00
Karl Ostmo
a739b142f3
refactoring towards tournament server (#1801)
Prerequisite to #1798 

## Changes

* Pass the final `TickNumber` count as a member of `Won` constructor so that it can be used in scoring submitted solutions
* Extract a helper function `codeMetricsFromSyntax` that can be reused by tournament server
* `ToJSON` instance for `ScenarioMetadata`
* New script `list-sublibraries.sh` to list the sublibraries defined in a package
2024-04-22 18:55:06 +00:00
Karl Ostmo
0c45811755
tweak benchmarks (#1754)
In support of #1598 (for #1739).

Runs the `idle` benchmark for many more ticks and with many more robots to try to emphasize the effect of regressions and  mitigate jitter.

Also factors out common code from the `benchmark-against-parent.sh` script.
2024-01-29 18:38:57 +00:00
Karl Ostmo
b80503f16e
Boolean expressions of objective prerequisites (#927)
Closes #795

![image](https://user-images.githubusercontent.com/261693/210162423-4dadf9d8-8e32-437f-b854-b7106dd4bbe8.png)

![Screenshot from 2022-12-31 22-58-59](https://user-images.githubusercontent.com/261693/210163446-e53c4abd-7bc1-4271-8a7c-cf0165f9ced8.png)
![image](https://user-images.githubusercontent.com/261693/210162466-3d3ae29e-9b35-44e6-93bc-df1efe59d7e9.png)

## Tasks
- [x] Vendor a subset of the `boolexpr` package
- [x] New display logic for parallel goals
- [x] Add a check for whether winning is impossible (due to a "not" prerequisite being achieved)
- [x] Add a "Lose" dialog analogous to the "Win" dialog
- [x] Validate no dependency cycles in prerequisites specs
- [x] Add tests for negative validation result from scenario parsing
- [x] Web API to inspect status of incomplete, completed, optional, and prerequisite objectives
- [x] Update all of the multi-goal scenarios to use prerequisites

## For follow-up PRs:
- [ ] Upload new GHC8-compatible version of `boolexpr` to Hackage (perhaps [take over the package](https://wiki.haskell.org/Taking_over_a_package)?)
- [ ] Add prerequisites and its logical operators to JSON schema
- [ ] Reverse topological sort of goals before evaluation, with a test that demonstrates necessity
- [ ] Automatically skip over the header rows when navigating the Goals list
- [ ] Add indicators for optional and hidden goals
- [ ] New Challenge for strategizing optional and mutually-exclusive goals
2023-01-25 04:07:00 +00:00
Karl Ostmo
68c992aa2d
Isolate work directory for 'stack test' (#995)
Closes #936.

With this change, `stack build` should be invoked as normal, but to run tests one should invoke the new script, which will place compilation artifacts in a separate directory so as to not stomp on the previous `stack build` artifacts.

## Demo

```
stack build
./scripts/run-tests.sh
stack build
```
All perform incremental compilation rather than from-scratch.
2023-01-10 18:34:18 +00:00
Ondřej Šebek
57be1f7c03
Add scenario json schema (#620)
- added JSON schemas for scenarios, entities and recipes
- closes #346
2022-08-06 23:07:26 +00:00
Brent Yorgey
875da9674f ignore some files 2022-01-22 15:46:52 -06:00
Ondřej Šebek
817925bd5b
Add cabal to HLS configuration (#131)
- allow HLS to use Cabal instead of Stack
  - Cabal works fine, and I do not see any advantage to using Stack
  - someone using Stack should test this does not switch him to Cabal ⚠️  
- ignore `cabal.project.local` so I can put there `ghc-options: -haddock`
  - this flag could lead to errors before GHC 9, but it gives me [docs on hover](https://haskell-language-server.readthedocs.io/en/latest/features.html)
2021-10-03 21:14:04 +00:00
Brent Yorgey
b693dbbbc5 ignore HIE and stan stuff 2021-09-04 09:21:12 -05:00
Brent Yorgey
e572661fe8 ignore .swarm_history file 2021-08-29 16:48:49 -05:00
Brent Yorgey
a1885536d2 set up stack 2021-08-24 21:59:03 -05:00
Brent Yorgey
479b10e986 initial exploration 2021-08-21 18:18:07 -05:00