GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BartekGu/Basic-AI-Algorithm: Farmer Sim: Custom A* pathfinding with AI features

BranchesTags
Open more actions menu

Latest commit

 

History

47 Commits
47 Commits

Folders and files

NameName
Last commit message
Last commit date
Basic Ai Alhorithm
Basic Ai Alhorithm
 
 
ReadmeResources
ReadmeResources
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 

Repository files navigation

Farmer Simulation

Project Overview

simulationRecord.mp4

This project aimed to demonstrate the concept of complexity in simplicity and scalability.
It showcases my ability to create efficient and adaptable code, even for complex projects.

Key Features

A Pathfinding:*

  • Isolated pathfinding system using assembly definitions
  • Customizable grid sizes and center points, large scale friendly

  • Flexible path types (sharp linear or smooth bezier curve)
    Linear:__________________________Bezier curve:

  • Automatic obstacle mapping for squares and rectangles

  • Fully documented

Camera Controls:

  • Boundaries and zooming
  • Farmer following
  • Drag-to-move
  • Perspective and orthographic camera modes

Multiple Farmer AI:

  • Open-ended AI system for future actor types
  • Realistic farmer behavior with limited inventory and work interactions
  • State machine-based AI with 8 distinct states that are:
    -Deploy crops state => if wanna transition to planting or have maximum capacity of seeds
    -Deploy seeds state => if wanna transition to collecting crops or doesnt have seeds and want to plant
    -Find empty crop ground state => if wanna plant seed but isn't near planting spot
    -Find grown crop => if wanna collect crop but isn't near that crop spot
    -Gather crops state => if wanna collect crop that is standing on
    -Gather seeds state => if is near chest that giving seeds and wanna collect seeds
    -Plant state => if wanna plant seeds and is in empty crop ground place
    -Wait for new work => if there is no work to do or something went wrong, safe state

UI

  • Debugging friendly with text popups
  • Ability to change simulation speed in runtime
  • Visual showcase of farmers job statistics

Technical Details:

Packages: URP, DOTween, GridBox Prototype Materials, TextMeshPro
Custom Features: A* pathfinding, camera controls, multiple farmer AI, UI

Future Plans if i had time:

  • Add new types of plants
  • Support projection on rotated obstacles
  • More types of Actors, like explorators or builders that would build new houses/cropfields/remove some obstacles
  • Seperate chests to give and collect only one type of plant/crop/seed

About

Farmer Sim: Custom A* pathfinding with AI features

Topics

aiastar-pathfindingbezier-curvecamera-movementdotweengridstate-machinetextmeshprounity3durpweek-project

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.