Sha256: 5794cbcba7d43079e52df015c0d3dddb9370bf990cbb13340b1c1294fbb118e2
Contents?: true
Size: 492 Bytes
Versions: 9
Compression:
Stored size: 492 Bytes
Contents
# frozen-string-literal: true module Bioshogi module InputAdapter concern :LocationValidation do def hard_validations super if location if player.location != location errors_add DifferentTurnCommonError, "#{player.call_name}の手番で#{player.opponent_player.call_name}が着手しました" end end end private def location Location.fetch_if(input[location_key]) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems