Better HN
topnewbestaskshowjobs
Log inSign up

xirzec

1 karma · joined Jul 11, 2016 (10y ago) · 1 submissions

Submissions

comment 8y ago · link · parent

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...