This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a programming chellenge from David Bock's series | |
# "What Computer Scientists Know". This is a problem that can | |
# be used to discuss a bunch of computer science topics, but | |
# as I'm providing most of the skeleton of the solution, the | |
# point of this exercise is to demonstrate 'recursive backtracking'. | |
# http://en.wikipedia.org/wiki/Backtracking | |
# this problem is based on the classic 'triange peg game', a common | |
# sight in roadside diners in America, in particular, Cracker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use this setup block to configure all options available in SimpleForm. | |
SimpleForm.setup do |config| | |
config.error_notification_class = 'alert alert-danger' | |
config.button_class = 'waves-effect waves-light btn' | |
config.boolean_label_class = nil | |
config.wrappers :vertical_form, tag: 'div', class: 'input-field', error_class: 'has-error' do |b| | |
b.use :html5 | |
b.use :placeholder | |
b.optional :maxlength |