Hacker News new | ask | show | jobs
by xirzec 2965 days ago
Looking at the code you could do getCharacter() for a Space returned by look()/listen()/feel() to figure out what type of enemy it is: https://github.com/olistic/warriorjs/blob/master/packages/wa...