Crossfire Server, Trunk  R20993
snake.c File Reference
#include "global.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
+ Include dependency graph for snake.c:

Go to the source code of this file.

Functions

char ** make_snake_layout (int xsize, int ysize)
 

Detailed Description

Function Documentation

◆ make_snake_layout()

char** make_snake_layout ( int  xsize,
int  ysize 
)

Generate a snake-like layout.

Parameters
xsize
ysizelayout size.
Returns
generated layout.

Definition at line 34 of file snake.c.

References RANDOM.

Referenced by layoutgen().

+ Here is the caller graph for this function: