Skip to content

Commit

Permalink
Small enhancements to /go.
Browse files Browse the repository at this point in the history
  • Loading branch information
curfman committed Feb 18, 2016
1 parent 3f2935b commit e86487a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions roomgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,24 @@ func exitRoom(conn *websocket.Conn, req *GameonRequest, tail, room string) (e er
validExit := true
banter := ""
switch dir {
case "n":
case "n", "north":
banter = "Going North!"
case "s":
lresp.ExitId = "n"
case "s", "south":
banter = "Going south! Later, Gator!!"
case "e":
lresp.ExitId = "s"
case "e", "east":
banter = "Going east!"
case "w":
lresp.ExitId = "e"
case "w", "west":
banter = "Going west, we think."
lresp.ExitId = "w"
case "home":
banter = "You can't go home again."
validExit = false
case "away":
banter = "Never!"
validExit = false
default:
checkpoint(locus, "UNKNOWN.DIRECTION")
validExit = false
Expand Down

0 comments on commit e86487a

Please sign in to comment.