An open API service indexing awesome lists of open source software.

https://github.com/mateuseap/intelligent-systems

Codes for IF684 (Intelligent Systems) discipline
https://github.com/mateuseap/intelligent-systems

javascript p5js

Last synced: about 1 year ago
JSON representation

Codes for IF684 (Intelligent Systems) discipline

Awesome Lists containing this project

README

          

# Intelligent Systems
Codes for IF684 (Intelligent Systems) discipline.

## Activities made with p5.js

Below there's a list of finished activities containing the link to its code available in this repo and also in **p5.js** website:


Activity 2.1 - Agent collecting food




- [Code in this repo](https://github.com/mateuseap/intelligent-systems/tree/main/agent%20collecting%20food)
- [Code in p5.js website](https://editor.p5js.org/mateuseap/sketches/n5KUZQZGj)


Activity 2.2 - Agent looking for food




- [Code in this repo](https://github.com/mateuseap/intelligent-systems/tree/main/agent%20looking%20for%20food)
- [Code in p5.js website](https://editor.p5js.org/mateuseap/sketches/pHgR88XFZ)


Activity 2.3 - Evolution of an ecosystem




- [Code in this repo](https://github.com/mateuseap/intelligent-systems/tree/main/evolution%20of%20an%20ecosystem)
- [Code in p5.js website](https://editor.p5js.org/mateuseap/sketches/JwhbZkjk-)

## Running p5.js code locally

To run some code locally you'll need to install [Node.js](https://nodejs.org/en/) `http-server`, just follow these simples steps to install it:

- Download and install [Node.js](https://nodejs.org/en/)
- Open a terminal or command prompt (on **Windows** you might need to open the command prompt as admin)
- In the terminal type:

```bash
npm install -g http-server
```

If you get a permission error on **Ubuntu** try to run the command using `sudo`. After installing the `http-server` you're ready to go!

From then on just `cd` to the folder that has the code that you want to run and type:

```bash
http-server
```

It will show you where at URL the code will be running at, then you just need to open it up in your browse:

![http-server](https://i.imgur.com/DMHbcdU.png)