tictactoe 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/tictactoe.rb +1 -1
  2. metadata +1 -1
@@ -121,7 +121,7 @@ class Tictactoe
121
121
  result << @moves.index(element)
122
122
  result
123
123
  end
124
- position_index = rand(0...indexes.size)
124
+ position_index = Random.new.rand(0...indexes.size)
125
125
  values_position = indexes.values_at(position_index).first
126
126
  @computer_move = values_position
127
127
  @moves[values_position] = "X"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tictactoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: