Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
bring the 'free square' convention in line with ARTGO reality
Browse files Browse the repository at this point in the history
  • Loading branch information
rick committed Jun 25, 2009
1 parent 65405f8 commit f30d4fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/bingo_controller.rb
Expand Up @@ -29,7 +29,7 @@ def initialize(root = File.join('public', 'images', 'bingo'))
@grid[action] ||= {}
@title[action] ||= ['A', 'R', 'T', 'G', 'O' ]
Dir.open(File.join(@root, action)).each do |f|
next if (f =~ /^blank.png$/)
next if (f =~ /^free_square.png$/)
next unless (f =~ /..+\.png$/)
@grid[action][f.gsub(/\.png$/, '')] = (f =~ /_(\d+)\.png/ ? $1.to_i : 1)
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/bingo/index.rhtml
Expand Up @@ -7,7 +7,7 @@
<td><img style="border: 1px solid black;" SRC="/images/bingo/<%= @action %>/<%= cell.downcase %>.png" width="95" heigth="95" alt="<%=h cell.gsub(/_\d+$/, '').humanize %>" title="<%=h cell.gsub(/_\d+$/, '').humanize %>"></td>
<% count += 1 -%>
<% if 17 == count -%>
<td><img style="border: 1px solid black;" src="/images/bingo/<%= @action %>/blank.png" width="95" height="95" alt="free" title="free"></td>
<td><img style="border: 1px solid black;" src="/images/bingo/<%= @action %>/free_square.png" width="95" height="95" alt="free" title="free"></td>
<% count += 1 -%>
<% end -%>
<% if 0 == count %5 -%>
Expand Down

0 comments on commit f30d4fa

Please sign in to comment.