Sha256: f45306aed2e0a4dcfeacb2160917ea42ebf386fa6d892671ba0325c74b8a15b6
Contents?: true
Size: 546 Bytes
Versions: 5
Compression:
Stored size: 546 Bytes
Contents
# encoding: UTF-8 require_relative 'player' # Represents the winning condition received from the server when the game ended. class Condition # @!attribute [r] winner # @return [Player] winning player attr_reader :winner # @!attribute [r] reason # @return [String] winning reason attr_reader :reason # Initializes the winning Condition with a player and a reason # @param winer [Player] winning player # @param reason [String] winning reason def initialize(winner, reason) @winner = winner @reason = reason end end
Version data entries
5 entries across 5 versions & 1 rubygems