Implement puzzle generation
This commit is contained in:
22
puzz.h
Normal file
22
puzz.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* 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
|
||||
Reference in New Issue
Block a user