RCRPG/Python: Difference between revisions
Content added Content deleted
(→Code: fix bug) |
m (Fixed syntax highlighting.) |
||
Line 4: | Line 4: | ||
All the commands listed on the blog post are implemented, as well as move and unequip. |
All the commands listed on the blog post are implemented, as well as move and unequip. |
||
==Code== |
===Code=== |
||
< |
<syntaxhighlight lang="python">directions = {'north':(0,-1,0), |
||
'east':(1,0,0), |
'east':(1,0,0), |
||
'south':(0,1,0), |
'south':(0,1,0), |
||
Line 198: | Line 198: | ||
break |
break |
||
print("Thanks for playing!") |
print("Thanks for playing!")</syntaxhighlight> |
||
</lang> |