Skip to content

Commit 74ba992

Browse files
author
Maxime Buffa
committed
Update README, silence Ecto warning
1 parent 6f3f64d commit 74ba992

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# PathDemo
2+
This is a live demonstration of the A* pathfinding algorithm implemented in Elixir using LiveView. The algorithm itself is a functional step-by-step version of the famous A* algorithm, which is most commonly used in video games.
23

3-
## Online Demo
44
Head over to https://path-demo.fly.dev and enjoy!
55

6-
## Context
7-
This is a live demonstration of the A* pathfinding algorithm implemented in Elixir using LiveView. The algorithm itself is a functional step-by-step version of the famous A* algorithm, which is most commonly used in video games.
6+
(It's not supposed to be multiplayer, and it's not instanced, so others might try to move the robot while you do so 😄)
87

8+
## Context
99
I hacked together the original version of this demo literally over a weekend, ingesting a lot of content about pathing, and a bit about LiveView, in order to do an internal talk at Pandascore.
1010
I got back to it and refactored the whole thing later to clean it up, so overall, I think this is a great demonstration of some of Elixir capabilities, and how to implement such an algorithm in a functional way, leveraging pattern matching quite extensively.
1111

config/config.exs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
# General application configuration
88
import Config
99

10-
config :path_demo,
11-
ecto_repos: []
12-
1310
# config :path_demo,
1411
# ecto_repos: [PathDemo.Repo]
1512

lib/path_demo/repo.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
defmodule PathDemo.Repo do
2-
use Ecto.Repo,
3-
otp_app: :path_demo,
4-
adapter: Ecto.Adapters.Postgres
5-
end
1+
# defmodule PathDemo.Repo do
2+
# use Ecto.Repo,
3+
# otp_app: :path_demo,
4+
# adapter: Ecto.Adapters.Postgres
5+
# end

0 commit comments

Comments
 (0)