Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Untitled
SUBMITTED BY:
Kiliandeca
DATE:
Aug. 1, 2016, 5:15 p.m.
FORMAT:
Python 3
SIZE:
552 Bytes
Raw
Download
Tweet
HITS:
482
Go to comments
Report
l
=
[[
0
,
0
,
0
,
0
,
0
],[
0
,
0
,
0
,
0
,
0
],[
0
,
0
,
0
,
0
,
0
],[
0
,
0
,
0
,
0
,
0
]]
l
[
0
][
0
]
=
1
x
=
0
y
=
0
def
afficher
():
for
a
in
l
:
print
(
a
,
"
\n
"
)
afficher
()
while
True
:
i
=
input
()
if
i
==
"d"
and
x
<
4
:
l
[
y
][
x
]
=
0
x
+=
1
l
[
y
][
x
]
=
1
elif
i
==
"q"
and
x
>
0
:
l
[
y
][
x
]
=
0
x
-=
1
l
[
y
][
x
]
=
1
elif
i
==
"z"
and
y
>
0
:
l
[
y
][
x
]
=
0
y
-=
1
l
[
y
][
x
]
=
1
elif
i
==
"s"
and
y
<
4
:
l
[
y
][
x
]
=
0
y
+=
1
l
[
y
][
x
]
=
1
afficher
()
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus