ai-agents

0.2.1 • Public • Published

ai-agents

First attemp to create a multi agent framework for the lecture: Introducción a la inteligencia Artificial.

Install

git clone https://github.com/andcastillo/ai-agents.git
cd ai-agents
npm install 

Run the example

node src/example/main.js

Output

Winner Smith
[ { agentID: 'Smith', action: 'DOWN' },
  { agentID: 'Smith', action: 'RIGHT' },
  { agentID: 'Smith', action: 'RIGHT' },
  { agentID: 'Smith', action: 'LEFT' },
  { agentID: 'Smith', action: 'RIGHT' },
  { agentID: 'Smith', action: 'LEFT' },
  { agentID: 'Smith', action: 'RIGHT' },
  { agentID: 'Smith', action: 'LEFT' },
  { agentID: 'Smith', action: 'RIGHT' },
  { agentID: 'Smith', action: 'LEFT' },
  { agentID: 'Smith', action: 'RIGHT' },
  { agentID: 'Smith', action: 'LEFT' } ]
[ [ 0, 0, 0, 0 ],
  [ 0, 1, 1, -1 ],
  [ 0, 1, 0, 0 ],
  [ 0, 'X', 0, 1 ] ]

As we still having the -1 in the problem matrix, we assume that agent could not solve the given problem.

Now, try it yoursel!!!!

Package Sidebar

Install

npm i ai-agents

Weekly Downloads

1

Version

0.2.1

License

MIT

Unpacked Size

25 kB

Total Files

16

Last publish

Collaborators

  • andcastillo