Skip to content

Instantly share code, notes, and snippets.

@slavone
Created June 11, 2021 16:44
Show Gist options
  • Save slavone/7586cc2016a967a1483875268c8b9b5c to your computer and use it in GitHub Desktop.
Save slavone/7586cc2016a967a1483875268c8b9b5c to your computer and use it in GitHub Desktop.
formatting
@fields ||=
Array.new(size) do |y|
Array.new(size) do |x|
Field.new(x: Chess::X[x], y: y + 1)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment