7

[ubuntu] fxruby memoiry game

view full story
linux-howto

http://ubuntuforums.org – For my intro to computer programming class I need to make a memory game using fxruby. This is my code so far. I need to figure out how to make it so when two buttons are clicked the rest cannot be clicked. If the two buttons match then the back color becomes blue, but if they do not match then it flip back to nil. require 'fox16' require 'rubygems' include Fox class MemoryGameWindow < FXMainWindow def initialize(app) super(app,"Memory Game", :width => 670, :height => 670) @clickNumber=0 @buttonArray=[] @score = 0 self.title = &quot (Hardware)