Projekt/snake_main.c
void render_snake(){
    int i;
    //send the snake to the buffer - render snake
    for(i = 0; i<snake.num_blocks; i++){
      //iterates over each block in the snake
      Block pointed_block = snake.blocks_array[i];
      add_square(pointed_block.x0, pointed_block.y0, BLOCK_SIZE);
    }
  }
/*"renders" the snake - sends it to the frame buffer*/
"renders" the snake - sends it to the frame buffer
" renders " the snake - sends it to the frame buffer
void render_snake(){
    int i;
    for(i = 0; i<snake.num_blocks; i++){
      Block pointed_block = snake.blocks_array[i];
      add_square(pointed_block.x0, pointed_block.y0, BLOCK_SIZE);
    }
  }
void render_snake ( ) { int i ; for ( i = 0 ; i < snake . num_blocks ; i ++ ) { Block pointed_block = snake . blocks_array [ i ] ; add_square ( pointed_block . x0 , pointed_block . y0 , BLOCK_SIZE ) ; } }
"renders" the snake - sends it to the frame buffer
" renders " the snake - sends it to the frame buffer
//send the snake to the buffer - render snake //iterates over each block in the snake