Crossfire Server, Trunk  R20608
snake.c File Reference

Snake-like layout generator. More...

#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)
 Generate a snake-like layout. More...
 

Detailed Description

Function Documentation

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: