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 ...

Get Jess in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.