Class: RulesAi::RuleCalculation
- Inherits:
-
Object
- Object
- RulesAi::RuleCalculation
- Defined in:
- lib/rules_ai.rb
Class Method Summary collapse
Class Method Details
.calculate_metarules ⇒ Object
398 399 400 401 402 403 404 405 406 407 408 409 |
# File 'lib/rules_ai.rb', line 398 def self. print "How many regular rules? >> " r = gets.chomp.to_i # For each amount of rules, meta rules is that many variations of rule combination. = r = r * r = * r puts "For #{r} many regular rules, there are #{} metarule variations of #{} each. Totalling #{} lines of code." end |