diff --git a/falling_puzzle.rb b/falling_puzzle.rb index 886ef72..75b6ab5 100755 --- a/falling_puzzle.rb +++ b/falling_puzzle.rb @@ -6,7 +6,7 @@ Process.kill(:INT,display1) x = "50" y = "50" -display2 = spawn("display -geometry +%f+%f 8puzzle2big.png",x,y) +display2 = spawn("display -geometry +#{x}+#{y} 8puzzle1big.png") sleep(5) Process.kill(:INT,display2) diff --git a/yobi1.rb b/yobi1.rb index b1fbff9..31a2e69 100755 --- a/yobi1.rb +++ b/yobi1.rb @@ -1,7 +1,3 @@ #! usr/bin/env ruby # -*- coding: utf-8 -*- -quiz = ["1","2","3"] -srand() -number = rand(quiz.length) -p quiz[number]