---
title: reset()
framework: gameplaykit
role: symbol
role_heading: Instance Method
path: gameplaykit/gkrulesystem/reset()
---

# reset()

Returns the rule system to its original agenda and clears all facts.

## Declaration

```swift
func reset()
```

## Discussion

Discussion Calling this method restarts the evaluation process: the system removes all rules from the current agenda and executed lists and empties the facts set. (However, the rule’s state dictionary is left unchanged.) The system then automatically repopulates its agenda according to the salience of each rule in the rules array.

## See Also

### Evaluating a Rule System

- [evaluate()](gameplaykit/gkrulesystem/evaluate().md)
- [agenda](gameplaykit/gkrulesystem/agenda.md)
- [executed](gameplaykit/gkrulesystem/executed.md)
