diff options
author | Nat Lasseter <user@4574.co.uk> | 2024-05-10 10:31:08 +0100 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2024-05-10 10:31:08 +0100 |
commit | 42f9fdc0b88dd819a61593ed053d6b0713c59e45 (patch) | |
tree | 457cd53d93606bce249d7a0016cde68da2a98564 /02-hub3.rb | |
parent | a24f29c0e92a70415f679bc8e2fdd4e6410e1948 (diff) |
Diffstat (limited to '02-hub3.rb')
-rw-r--r-- | 02-hub3.rb | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -21,13 +21,9 @@ $levels << Level.new do end def generate - frames = {} - @interfaces.each do |iface| - next if rand < 0.3 - frames[@count.to_s] = Frame.new(iface, @count) - @count += 1 - end - frames + frame = Frame.new(interfaces.sample, @count) + @count += 1 + frame end def click |