main.c
// Return a coord where an entity (incl. player) could spawn
Return a coord where an entity (incl. player) could spawn
Return a coord where an entity ( incl . player ) could spawn
coord sprinkle ()
{
    coord c;
    while(1)
    {
        c.x = rand() % MAP_COLS;
        c.y = rand() % MAP_ROWS;
        if(freeCoord(c)) return c;
    }
}
coord sprinkle ( ) { coord c ; while ( 1 ) { c . x = rand ( ) % MAP_COLS ; c . y = rand ( ) % MAP_ROWS ; if ( freeCoord ( c ) ) return c ; } }
Return a coord where an entity (incl.
Return a coord where an entity ( incl .