Git Product home page Git Product logo

gmylm-elixir's People

Contributors

tansaku avatar yakryder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tansaku

gmylm-elixir's Issues

Game blows up on invalid command

Not sure when this got introduced but there obviously isn't a covering case for it.

fart
** (MatchError) no match of right hand side value: {:error, "That's not something you can do"}
(gmylm) lib/gmylm.ex:82: Gmylm.game_loop/5

image

problem on user interface

iex(1)> Gmylm.start_game
> n
** (FunctionClauseError) no function clause matching in Gmylm.Interface.controls/3
    (gmylm) lib/interface.ex:13: Gmylm.Interface.controls("n\n", %Gmylm.Player{inventory: [], location: %Gmylm.World.Location{description: "Hankin is my school.  The school is a pretty cool building.  Made of brick and really old with designs in the stone parts.  I like the carvings of gears, and the one of the people dancing.  There are lots of kids out in front of the school right now because the bell just rang.", down: nil, east: "Hankin School Playground", name: "Hankin Elementary School", north: nil, on_ground: ["Carvings of People Dancing", "Spoiled Milk", "Balloon"], south: nil, up: nil, west: "The Park"}}, %Gmylm.World{events: [%Gmylm.World.Event{code: nil, name: "Start Game", text: "Give Me Your Lunch Money\nGive Me Your Lunch Money A Tale of the Exploits of an 8 Year-Old Inventor By DCBSupafly\nPresented for ADRIFT 4.0 2009 Twin Comp\nYou may type the following at any time:\n“Help” A brief explanation of what’s going on, how to play “Credits” A brief explanation of who is to blame for this adventure\nFinally, this adventure’s creator recommends playing with a map enabled and with autocomplete disabled, but neither is necessary\nIf you see these:     ...   then the adventure wants you to press a key to move on\nAnd now, with no further ado... "}], locations: [%Gmylm.World.Location{description: "Our backyard is awesome.  Theres a bunch of trees and a tall fence all the way around.  I like to have water gun fights or invent tree-climbing tools out here.\n\nThe door at the south end of the yard leads back inside to the laundry room.  The only other place to go from here is up a tree! ", down: nil, east: nil, name: "Backyard", north: nil, on_ground: [], south: "Laundry Room", up: "Up in my favorite tree", west: nil}, %Gmylm.World.Location{description: "The basement's not scary, okay?  Some people say it is but I say its only scary if theres a storm and the lights are out and something is not put away where you expect it to be and it looks like a person in the shadows.  Otherwise the basement is neat.  It's full of tools and stuff.\n\nThe only way out is back up the stairs. ", down: nil, east: nil, name: "Basement", north: nil, on_ground: [], south: nil, up: "Hallway", west: nil}, %Gmylm.World.Location{description: "This place is <i>fancy</i>.  I like the table in here because its big enough that I can make inventions on it, but I have to put down newspaper first, and I have to clear it off before dinner every night.\n\nThe kitchen is just north, so you can bring food in here to eat, and the foyer is just east, so you can bring guests in here without letting them see the rest of the messy house. ", down: nil, east: "Foyer", name: "Dining Room", north: "Kitchen", on_ground: [], south: nil, up: nil, west: nil}, %Gmylm.World.Location{description: "The downstairs bathroom is small, but its okay.  Theres the mirror on the wall, and a toilet in here.  Its not very good for finding trap supplies I think.\\n\\nThe only door is to the west, and leads back to the hallway.", down: nil, east: nil, name: "Downstairs Bathroom", north: nil, on_ground: [], south: nil, up: nil, west: "Hallway"}, %Gmylm.World.Location{description: "The front entryway to my house is kept clean.  Mom & Dad dont let me and %nameOfSister% play in here, and we get yelled at when we put our backpacks down in here.  Sis' backpack is on the floor.\\n\\nThe front yard is just outside to the south.  The hallway is to the north.  The dining room is just west of here, and across to the east is the living room.", down: nil, east: "Living Room", name: "Foyer", north: "Hallway", on_ground: [], south: "Front Yard", up: nil, west: "Dining Room"}, %Gmylm.World.Location{description: "It's the front yard.  It's covered in grass with a little pathway around the garden leading up to the front door.  Just seeing my yard makes me feel safe... it means I got all the way home from school in one piece!\\n\\nThe park is just south of here, and the foyer of my house is to the north.", down: nil, east: nil, name: "Front Yard", north: "Foyer", on_ground: [], south: "The Park", up: nil, west: nil}, %Gmylm.World.Location{description: "The garage is pretty cool.  A few years ago, Mom & Dad put all the junk and tools up in cabinets on the walls so the cars could fit in the garage.  Then they got more junk and a lawnmower.  So now just one car fits.\\n\\nI'm too short to open the front garage doors, but the door to the west leads back inside to the laundry room.", down: nil, east: nil, name: "Garage", north: nil, on_ground: [], south: nil, up: nil, west: "Laundry Room"}, %Gmylm.World.Location{description: "The hallway has wooden floors...not as much fun as the kitchen floors. <br><br>Theres not too much to do here, but from here I can go upstairs to the bedrooms and stuff, or down to the basement!\\n\\nTo the east is the bathroom, to the west is the kitchen, the southern exit leads back to the foyer and the north goes to the laundry room towards the backyard.", down: "Basement", east: "Downstairs Bathroom", name: "Hallway", north: "Laundry Room", on_ground: [], south: "Foyer", up: "Upstairs Hallway", west: "Kitchen"}, %Gmylm.World.Location{description: "Hankin is my school.  The school is a pretty cool building.  Made of brick and really old with designs in the stone parts.  I like the carvings of gears, and the one of the people dancing.  There are lots of kids out in front of the school right now because the bell just rang.", down: nil, east: "Hankin School Playground", name: "Hankin Elementary School", north: nil, on_ground: ["Carvings of People Dancing", "Spoiled Milk", "Balloon"], south: nil, up: nil, west: "The Park"}, %Gmylm.World.Location{description: "The Hankin school playground is a great place.  I spend a lot of time here, on the jungle gym, hanging upside down on the monkey bars, or studying the mechanics of the see-saw.  I like to read inside the plastic crawl tube sometimes.\\n\\nThe only way out of the playground is west to the front of the school.", down: nil, east: nil, name: "Hankin School Playground", north: nil, on_ground: [], south: nil, up: nil, west: "Hankin Elementary School"}, %Gmylm.World.Location{description: "Its really the upstairs bathroom but since only %nameOfSister% and I use it, we call it the kids bathroom.  It has a bathtub and a toilet, and a sink with a mirror.\\n\\nThe door to the west leads back to the hallway.", down: nil, east: nil, name: "Kids Bathroom", north: nil, on_ground: [], south: nil, up: nil, west: "Upstairs Hallway"}, %Gmylm.World.Location{description: "The kitchen is cool.  It's full of good food.  Sometimes Dad forgets to clean out the fridge for a while, or take out the trash, and then it gets gross.  I like the floor because you can slide on it in your socks!  It's Linoleum.  Theres also the kitchen counter in here, which is pretty tall -- only a little below my head.\\n\\nThe eastern exit leads to the hall, with stairs, and the south goes into the dining room to eat.", down: nil, east: "Hallway", name: "Kitchen", north: nil, on_ground: [], south: "Dining Room", up: nil, west: nil}, %Gmylm.World.Location{description: "We call this the laundry room, I guess because of the laundry.  It has other more interesting stuff in it too, like the cleaning supplies cabinet and a door to the backyard.\\n\\nThe eastern exit leads to the garage, the north outside, and the south back into the hallway.", down: nil, east: "Garage", name: "Laundry Room", north: "Backyard", on_ground: [], south: "Hallway", up: nil, west: nil}, %Gmylm.World.Location{description: "I don't spend much time in the living room.  I just come in here to watch movies.  Dad likes to read in here and he folds laundry in front of the TV sometimes.  Mom uses the stereo to listen to music in here after work some nights.\\n\\nThe only way out of here is back west to the foyer.", down: nil, east: nil, name: "Living Room", north: nil, on_ground: [], south: nil, up: nil, west: "Foyer"}, %Gmylm.World.Location{description: "I basically never go in here.  It's a big bathroom with two sinks in the counter and a huge mirror.  The bath is really big too.  Besides all that it's just the toilet.  \\n\\nThe only door in here leads east into their bedroom.", down: nil, east: "Mom & Dad's Room", name: "Mom & Dad's Bathroom", north: nil, on_ground: [], south: nil, up: nil, west: nil}, %Gmylm.World.Location{description: "Im definitely not supposed to be in here, so I should probably leave soon.  Mom & Dads bed is in here, and its really big.  Against the other wall is a wooden wardrobe.  \\n\\nI can get to their bathroom to the west from in here, or back to the hall to the east.", down: nil, east: "Upstairs Hallway", name: "Mom & Dad's Room", north: nil, on_ground: [], south: nil, up: nil, west: "Mom & Dad's Bathroom"}, %Gmylm.World.Location{description: "My room is pretty cool.  You can see the backyard from my window, and I have a big corner desk.  \\n\\nThe only exit here is south to the hallway.", down: nil, east: nil, name: "My Room", north: nil, on_ground: [], south: "Upstairs Hallway", up: nil, west: nil}, %Gmylm.World.Location{description: "My secret stash is an old metal lunchbox I dug up.  I took it to this little room I can get to under some fir trees.  When you come around from the back of this one tree by the rocks, its like a little cave with walls of fir needles, and you disappear under here!  So this is where I buried the lunchbox.  It's like a little sunken treasure chest with the lid sticking out, hidden from view with some branches and pine needles that I lay over it.\\n\\nThe only way out of the secret room is back east to the park.", down: nil, east: "The Park", name: "My Secret Stash", north: nil, on_ground: ["Branches and Needles"], south: nil, up: nil, west: nil}, %Gmylm.World.Location{description: "Im not really supposed to go in here alone.  Ive been in here before though.  %nameOfSister% has a bunch of Rare Bears stuff on the walls, and some drawings that we made.\\n\\nTheres a door to the north that leads back to the hall.", down: nil, east: nil, name: "My Sister's Bedroom", north: "Upstairs Hallway", on_ground: ["Metal Lunchbox"], south: nil, up: nil, west: nil}, %Gmylm.World.Location{description: "The park is on the way home from school.  My house is just a block north of here, which is really cool because it means I can go to the park on my walk home every day.  The park has a creek, benches, tennis courts, and a lot of trees.\\n\\nTo the west, behind a fir tree is my secret stash, where I keep cool stuff I find.  Hankin Elementary School is just east of here.  The rock that sticks out over the creek here was the perfect spot to build my fortress.", down: nil, east: "Hankin Elementary School", name: "The Park", north: "Front Yard", on_ground: [], south: nil, up: nil, west: "My Secret Stash"}, %Gmylm.World.Location{description: "The upstairs hallway is pretty much like the downstairs hallway except that it has carpet like all the rooms upstairs.\\n\\nThe southern door goes to Sis room, the eastern one is the bathroom, the northern door is for my room, and the western door leads to Mom & Dads room.", down: "Hallway", east: "Kids' Bathroom", name: "Upstairs Hallway", north: "My Room", on_ground: [], south: "My Sister's Bedroom", up: nil, west: "Mom & Dad's Room"}, %Gmylm.World.Location{description: "Up on this branch I can see the whole yard.  It's my favorite place to study.  In fact, my old reading lamp is attached to the tree here.\\n\\nThe only way to go from here is down.", down: "Backyard", east: nil, name: "Up in my favorite tree", north: nil, on_ground: [], south: nil, up: nil, west: nil}]})
    (gmylm) lib/gmylm.ex:18: Gmylm.process_command/3
    (gmylm) lib/gmylm.ex:26: Gmylm.game_loop/3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.