Sha256: f2745b011822fcdd800bffe594b124dca66233fa603f7a0f256238af0a4ec1fb
Contents?: true
Size: 285 Bytes
Versions: 6
Compression:
Stored size: 285 Bytes
Contents
# frozen_string_literal: true module Codebreaker module Markers # Marker that will interpret the number of bulls # and cows in a codebreaker plus-minus style. class PlusMinusMarker def mark(bulls, cows) '+' * bulls + '-' * cows end end end end
Version data entries
6 entries across 6 versions & 1 rubygems