Coder Social home page Coder Social logo

murat-sahin1 / reflex-cleaning-agent Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 7 KB

Reflex agent that solves the vacuum cleaner problem.

Python 100.00%
reflex-agent agent ai artificial-intelligence cleaner python reflex vacuumcleaner vacuum-cleaner-problem

reflex-cleaning-agent's Introduction

Reflex agents, could be called as the most primitive agent of all the agents in AI. Basically, Reflex agents don't take their past percepts into the account. They act immediate by the rules and jurisdictions of their maker, without thinking what will be the result of their acts. ๐Ÿ‘จโ€๐Ÿ”ฌ๐Ÿงฌ

Problem = We have 2 rooms, these rooms could be cleaned or could be traveled, but we can only do one action at a time. Let's create a solution with the reflex-agent AI approach.

Also keep in mind that this reflex agent could only perceive its room and if it is clean or not. This means you can only use the information that the agent has. Nothing more.

Pseudo Code of the maintary action:

function Reflex-Cleaning-Agent([location, state]) returns action
   if state = dirty return clean
   else if location = A then return Go-Right
   else if location = B then return Go-Left

reflex-cleaning-agent's People

Contributors

murat-sahin1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wandernei

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.