summaryrefslogtreecommitdiff
path: root/src/simulation/senses.js
blob: 4fc96d6a626adf41063a60167195131eeb38a652 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict';


const frozen = {
  size: 1,
  read: (lattice, agent) => {
    if (agent.flags.frozen === true) {
      return [ 1 ];
    } else {
      return [ 0 ];
    }
  },
};


export const senses = [
  frozen,
];