Skip to content

Instantly share code, notes, and snippets.

@macdiva
Created December 11, 2011 16:30
Show Gist options
  • Save macdiva/1461412 to your computer and use it in GitHub Desktop.
Save macdiva/1461412 to your computer and use it in GitHub Desktop.
class Grid
constructor: (@width, @height) ->
@grid = []
get: (x,y) ->
@grid[y*@width + x]
set: (x,y,val) ->
@grid[y*@width + x]=val
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment