►
From YouTube: IPFS Meetup, London // Peer Chess - Juan Benet
Description
No description was provided for this meeting.
If this is YOUR meeting, an easy way to fix this is to add a description to your video, wherever mtngs.io found it (probably YouTube).
A
A
This
spawned
a
thing
called
peer
star
and
Pierce
art
is
a
project
we
have
going
on
to
make
it
easier
to
build
real-time
collaborative
apps
like
peer
pad
on
top
of
IP
fuzz,
and
so
here
you
know,
there's
a
whole.
You
know
library,
to
make
this
easy
for
you
and
use
the
CRT
keys.
It's
pretty
awesome,
and
so
I
wanted
to
learn
how
to
use
pure
Star
app
to
make
a
simple
app
and
there's
a
workshop
to
do
app
that
you
know
you
make
the
traditional
to
do
thing.
A
Raise
your
hand
if
you've
seen
like
that
to
do
zap
example.
Great
I
do
not
need
to
explain
what
that
is,
so
this
is
just
walks
through
how
to
replace
the
standard
stuff
with
with
peer
store
app.
So
it
gives
you
it
teaches
you
how
to
use
piercer
app,
so
I
use
that
too
I've
been
wanting
to
play
chess
peer
to
peer,
so
I
made.
So
this
is
thing
called
the
workshop
birthing
is
on
the
all
apps.
Let
me
close
that,
and
so
this
is
my
app
I.
Have
some
chess
Dodge
is
that
it's
gonna?
A
It's
a
library
that
I
found
that's
gonna
figure
out
all
the
moves.
I
have
a
chessboard
thing,
chefs
Lord
Jas,
which
handles
all
of
the
drawing
look
whoops
and
so
on.
So
that's
handles
all
the
drawing
and
what
was
left
for
me
was
actually
just
this
single
thing:
120
lines
of
code
to
make
a
peer-to-peer
chess
app.
Most
of
it
is
logging
to
to
like
know
what
I
was
doing
and
a
bunch
of
it
is
commented
out.
A
Oh
I
should
also
say:
I
made
this
whole
thing
when
I
got
into
this
Meetup
I
had
this
file
open
and
I
had
just
understood
how
to
use
pure
syrup,
and
so
I
made
the
whole
thing
while
we
were
chatting
so
I
got
it
all
like
working.
So
it's
probably
not
robust
but
we'll
find
out
yeah.
So
so,
if
I
serve
here
and
it's
gonna
open
this
thing
and
so
I'm
gonna
open
my
console
and
you
see
that
it
is
listening
on
some
stuff.
A
A
A
It's
not
in
the
room.
It
yeah
you're
right,
London
London
need
up.
A
A
A
So,
first
of
all,
the
index.html
page
looks
pretty
simple:
I
include
some
dependencies,
I,
don't
know
this
was
all
from
other
groups
and
my
build
is,
which
is
just
a
browser
if
I'd
op,
jeaious
and
the
entry
point
is
on
dumb,
ready
and
just
creates
this
pure
chess
app
we
go
up
here,
though
the
magic
is
here,
I
create
a
game.
This
is
the
logic
of
the
game.
This
is
the
board.
So
this
is
the
this
is
gonna,
listen,
do
all
the
listening
and
drawing
and
then
I
set
up
your
app.
A
So
this
is
the
the
actual
peer-to-peer
magic
I
create
an
app
and
I
give
an
app
name.
So
that's
where
the
location,
that's
what
the
name
name
of
the
room.
That's
where
this
is
causing.
You
know
different
sets
of
peers
to
do
work
in
and
then
I
set
up
a
handler
for
every
time.
The
state
changes
and
in
that
handler
I
do
a
bunch
of
logging
and
here's
where
I
just
figure
out.
A
What's
in
that
array,
this
is
super
janky
you,
you
probably
would
want
to
do
something
something
smart
of
here,
but
this
works
I
check
whatever's
in
this
array
that
it's
growing
oh
this,
this
safety
here
was
there
because
for
some
reason,
while
I
was
testing,
something
wasn't
growing
right,
and
so
it
was
infinite
looping.
So.
A
Yeah
yeah
and
then
make
move
causes.
You
know,
registers
that
move
in
the
game.
If
that
was
a
valid
move,
this
is
kind
of
how
that
API
works.
It'll
return
the
movie
if
it
was
valid,
and
then
in
that
case
you
update
the
board
and
you
send
it
to
your
peers
and
the
other
side
would
receive
it
call
the
unstaged
thing
which
that
that's,
where
you
came
from
oh
yeah,
and
make
movies
also
called
from
when
you
drop
it.