class TicTacToeRZ::GamePlay::WeightedMove

Attributes

index[RW]

index: Spot on board where move is made. score: Value of move made on board.

score[RW]

index: Spot on board where move is made. score: Value of move made on board.

Public Class Methods

new(index, score) click to toggle source
# File lib/tic_tac_toe_rz/tictactoeruby.core/gameplay/weighted_move.rb, line 10
def initialize(index, score)
  raise Exceptions::NilReferenceError, "index" if index.nil?
  raise Exceptions::NilReferenceError, "score" if score.nil?
  @index = index
  @score = score
end