Permalink
Browse files

add range

  • Loading branch information...
1 parent 7be53cf commit 93a7558d8f704cb6bcf2d0d37a6b86ece37a7df0 @kiba committed Mar 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/models/generate_map.coffee
@@ -15,6 +15,10 @@ class GenerateMap
success += 1
if success == 10
break
+ range: (x,y) ->
+ list = [x..y]
+ list.pop()
+ list.shift()
generate_paths: () ->
locations = []
for m in @map.crystalTrees

0 comments on commit 93a7558

Please sign in to comment.