23 lines
299 B
C
23 lines
299 B
C
/*
|
|
* Copyright (c) Camden Dixie O'Brien
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
#ifndef PUZZ_H
|
|
#define PUZZ_H
|
|
|
|
#define WIDTH 10
|
|
#define HEIGHT 10
|
|
#define NMINES 10
|
|
|
|
#include <stdint.h>
|
|
|
|
enum { MINE = 0xff };
|
|
|
|
typedef uint8_t puzz_t[WIDTH][HEIGHT];
|
|
|
|
void gen(void);
|
|
void print(void);
|
|
|
|
#endif
|