Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update_map
- groups = g.cells.select {|c| c.land? && c.owner }
- .group_by{ |c| [c.group, c.owner] }
- .map {|k,v| [k, v]}
- groups.each do |gr|
- gr[1].each{|c| c.owgrcount = gr[1].length}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment