Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save time upon finishing scenario #1118

Merged
merged 2 commits into from Feb 18, 2023
Merged

Save time upon finishing scenario #1118

merged 2 commits into from Feb 18, 2023

Conversation

xsebek
Copy link
Member

@xsebek xsebek commented Feb 18, 2023

@xsebek
Copy link
Member Author

xsebek commented Feb 18, 2023

I tried removing the saves directory and running solution for the spiral maze on main and here:

rm -rf ~/.local/share/swarm/saves

S=scenarios/Challenges/Mazes/easy_spiral_maze.yaml
yq '.solution' $S > maze.sw  # so you can run "maze.sw" later ;)

git checkout main
cabal run swarm:swarm -- --scenario $S  # let it sit in the quit dialog for a minute

git checkout finish-scenario-time
cabal run swarm:swarm -- --scenario $S # let it sit in the quit dialog for a minute

Copy link
Member

@byorgey byorgey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

@xsebek xsebek added the merge me Trigger the merge process of the Pull request. label Feb 18, 2023
@mergify mergify bot merged commit 22af444 into main Feb 18, 2023
@mergify mergify bot deleted the finish-scenario-time branch February 18, 2023 18:08
@byorgey byorgey mentioned this pull request Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Best time" includes time elapsed while Congratulations dialog is displayed
2 participants