O
O
Oleg Petrov2018-11-15 13:17:56
fuzzy logic
Oleg Petrov, 2018-11-15 13:17:56

What is the easiest way to program multiple responses to conditions?

I am trying to somehow generalize a similar formula: If the agent found X and / or found Y, and at the same time there was an event P before, then the agent will / will not do the action Z.
That is, the set of conditions + the state of the agent should lead to a certain reaction to this. The problem is that if you simply list all combinations + conditions, as well as all reactions to them in a row, you will get a lot of lines - this is inconvenient. After all, people program AI in games, as I understand it, there are a lot of such tasks, as is usually done?
Are there nice ways to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2018-11-15
@Smeilz1

  1. Truth tables of logical expressions. Minimization of logical functions with Karnaugh map.
  2. Automatic approach
  3. If there are many frequently changing rules/conditions, then decision tables

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question