Skip to content

Demo of using Erlang Ports in Elixir to talk to the game Rogue

Notifications You must be signed in to change notification settings

st23am/rogue_talker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RogueTalker

iex -S mix
Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Interactive Elixir (0.13.3) - press Ctrl+C to exit (type h() ENTER for help)

iex(1)> args = Rogue.start
=> {#PID<0.61.0>, #Port<0.3418>}

iex(2)> Rogue.show(args)
=>:ok




                                                         -----+-----------
                                                         |...............|
                                                         |...............|
                                                         |@..............|
                                                         |...............|
                                                         -----+-----------









Level: 1  Gold: 0      Hp: 12(12)  Str: 16(16)  Arm: 4   Exp: 1/0

iex(3)> Rogue.command(args, "j")

iex(4)> Rogue.show(args)





                                                         -----+-----------
                                                         |...............|
                                                         |...............|
                                                         |...............|
                                                         |@..............|
                                                         -----+-----------









Level: 1  Gold: 0      Hp: 12(12)  Str: 16(16)  Arm: 4   Exp: 1/0

** TODO: Add description **

About

Demo of using Erlang Ports in Elixir to talk to the game Rogue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages