A bot used for https://code-your-snake.codingmaster398.repl.co/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
876 B
31 lines
876 B
2 years ago
|
From [issue 6](https://github.com/qiao/PathFinding.js/issues/6)
|
||
|
|
||
|
#### states and button labels/actions
|
||
|
|
||
|
##### before searching; no colored squares - state B
|
||
|
- **Start Search** - to N
|
||
|
- **Pause Search** - button disabled (grayed out)
|
||
|
|
||
|
##### starting a new search - state N
|
||
|
This state clears any existing search progress and then immediately goes to state S.
|
||
|
|
||
|
##### during searching - state S
|
||
|
- **Restart Search** - to N
|
||
|
- **Pause Search** - to P
|
||
|
|
||
|
when search has finished - to F
|
||
|
|
||
|
##### search is paused - state P
|
||
|
- **Resume Search** - to S
|
||
|
- **Cancel Search** - to B
|
||
|
|
||
|
##### search has finished - state F
|
||
|
- **Restart Search** - to N
|
||
|
- **Clear Path** - to B
|
||
|
|
||
|
selecting a different algorithm or adding or deleting walls - to M
|
||
|
|
||
|
##### after search has finished and user has changed settings - state M
|
||
|
- **Start Search** - to N
|
||
|
- **Clear Path** - to B
|