Skip to content

I made this project as AI module while studing at Event Horizon. The AI uses state pattern with a pushdown automata.

Notifications You must be signed in to change notification settings

FlavioNovati/AI-Sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI-Sim

This project aim to exercise with the use of State Pattern to create a complex AI that simulates the behaviour of a lumberjack during a day-night cycle.

The main purpose of the lumberjack is to cut trees; at the start of each day it will look for a tree to cut. Cutting trees consumes stats.

Each Lumberjack has different stats: Hunger, Thirst and Stamina. When one the stats reaches a critical state the lumberjack will behave diffently:

  • Critical Hunger

    • Find food source
    • Move towards food source
    • Eat
  • Critical On Thirst:

    • Find water source
    • Move towards water source
    • Drink
  • Critical on Stamina

    • Move towards bed
    • Sleep

    The state machine uses push down automata pattern.

About

I made this project as AI module while studing at Event Horizon. The AI uses state pattern with a pushdown automata.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published