Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
samsmithnz committed Aug 27, 2023
1 parent f570d2d commit 84c1fac
Showing 1 changed file with 20 additions and 32 deletions.
52 changes: 20 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,3 @@
```mermaid
flowchart TD
id0[Start] --> id1[Are there unsorted pieces remaining?]
id1 --yes--> id2[Are there free agents?]
id1 --no--> idWait[Wait] --> id1
id2 --yes--> id3[Move free agent to pickup location]
id3 --> id4[Pick up package]
id4 --> id5[Analyze package]
id5 --> id6[Find delivery location]
id6 --> id7[Find route to delivery location]
id7 --> id8[Carry package to delivery location]
id8 --> id9[Drop package at delivery location]
id9 --> id1
id1 --no--> idEnd[Done]
```

```mermaid
flowchart TD
id0[Start] --> id1[Looking for new job]
id1[Looking for new job] --> idLook[Are there jobs]
idLook[Are there jobs?] --yes--> id2[Moving to pick up location]
id2[Moving to pick up location] --> id3[Picking up package]
id3[Picking up package] --> id4[Moving to delivery location]
id4[Moving to delivery location] --> id5[delivering package]
id5[Delivering package] --> id1[Looking for new job]
idLook[Are there jobs?] --no--> idEnd[End]
```




# PuzzleSorter
[![CI/CD](https://github.com/samsmithnz/PuzzleSorter/actions/workflows/workflow.yml/badge.svg)](https://github.com/samsmithnz/PuzzleSorter/actions/workflows/workflow.yml)

Expand All @@ -39,7 +8,7 @@ Some early prototypes:
- Unity3d: ![image](https://user-images.githubusercontent.com/8389039/219825141-2eee9e7d-cbc8-457d-b0dc-b442656173ce.png)
- WinForms: ![image](https://user-images.githubusercontent.com/8389039/219825182-33c8538a-d21e-489f-9faa-053bd5cd8718.png)

# How it works
# How it currently works
Based on the number of robots (agents that complete work), a timeline is created with the number of turns required.
- Each turn enables each robot to run one action, either a move from adjacent tile to another tile, pickup a piece, or a dropoff a piece.

Expand All @@ -56,3 +25,22 @@ flowchart TD
id5[Delivering package] --> id1[Looking for new job]
idLook[Are there jobs?] --no--> idEnd[End]
```

# How it needs to work in the future
Based on the number of robots (agents that complete work), each robot follows an algorithm to find work, if there is still work to complete.

```mermaid
flowchart TD
id0[Start] --> id1[Are there unsorted pieces remaining?]
id1 --yes--> id2[Are there free agents?]
id1 --no--> idWait[Wait] --> id1
id2 --yes--> id3[Move free agent to pickup location]
id3 --> id4[Pick up package]
id4 --> id5[Analyze package]
id5 --> id6[Find delivery location]
id6 --> id7[Find route to delivery location]
id7 --> id8[Carry package to delivery location]
id8 --> id9[Drop package at delivery location]
id9 --> id1
id1 --no--> idEnd[Done]
```

0 comments on commit 84c1fac

Please sign in to comment.