Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can someone help me understand what the rel() function does?


It returns the value of a neighbor given an index, and an x and y delta value. So rel(20, -1, 0) would return the neighbor to the left (x=-1, y=0) of the 20th cell.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: