-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
/.vscode | ||
/.fleet | ||
/.idea | ||
database.db | ||
settings.toml | ||
config.toml | ||
keymap.toml | ||
database.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Config | ||
|
||
User can configure settings by editing `config.toml` in the same directory. If the file does not exist, a default configuration file will be automatically generated when the program is run. | ||
|
||
```toml | ||
# Player movement animation speed, seconds per step. | ||
player_move_speed = 0.1 | ||
# Make the floor look like a chessboard with alternating light square and dark square. | ||
even_square_shades = 0.1 | ||
# Audio volume. | ||
volume = 0.5 | ||
# Disable player movement animation. | ||
instant_move = false | ||
# Enable auto switch to next unsolved level when the current level is solved. | ||
auto_switch_to_next_unsolved_level = true | ||
|
||
[solver] | ||
strategy = "Fast" | ||
lower_bound_method = "MinimumMove" | ||
``` | ||
|
||
For `solver` related configuration options, please refer to [Solver](./solver.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Database | ||
|
||
Any imported levels will be permanently stored in a [SQLite] database. | ||
|
||
```txt | ||
sqlite> SELECT * FROM tb_level LIMIT 1; | ||
+----+------------+-----------------+----------+----------+-------+--------+--------------------+------------+ | ||
| id | title | author | comments | map | width | height | hash | date | | ||
+----+------------+-----------------+----------+----------+-------+--------+--------------------+------------+ | ||
| 1 | Boxworld 1 | Thinking Rabbit | Level 1 | ### | 8 | 8 | 413779389415751139 | 2024-02-03 | | ||
| | | | | #.# | | | | | | ||
| | | | | # #### | | | | | | ||
| | | | | ###$ $.# | | | | | | ||
| | | | | #. $@### | | | | | | ||
| | | | | ####$# | | | | | | ||
| | | | | #.# | | | | | | ||
| | | | | ### | | | | | | ||
+----+------------+-----------------+----------+----------+-------+--------+--------------------+------------+ | ||
sqlite> SELECT * FROM tb_solution LIMIT 1; | ||
+----------+--------------------+--------------------+ | ||
| level_id | best_move_solution | best_push_solution | | ||
+----------+--------------------+--------------------+ | ||
| 1 | DuLLrUUdrR | LUUddLrrDuuR | | ||
+----------+--------------------+--------------------+ | ||
``` | ||
|
||
[SQLite]: https://www.sqlite.org/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters