O'Reilly logo

Jess in Action: Rule-Based Systems in Java by Ernest Friedman-Hill

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1. Rules to the rescue

In this chapter you’ll...

  • Be introduced to the Jess programming language
  • Analyze a rule-based program
  • See familiar examples of rule-based systems

Rule-based software is in regular use in practically every business, school, and home. In this chapter, we’ll look at some examples of how rules are used to solve common problems. Because most programmers learn best by doing, you’ll start by writing a rule-based program of your own.

1.1. Math class melee

“The answer, please?”

The stern voice startles you. You were dozing in Mrs. Rosencrantz’s high school math class again. You realize at once that she’s been talking to you.

“Well?”

You look at the blackboard. It’s one of those word puzzles, the logic kind. Mrs. Rosencrantz ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required