-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdata.cuh
More file actions
37 lines (31 loc) · 704 Bytes
/
data.cuh
File metadata and controls
37 lines (31 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef DATA_H
#define DATA_H
// ----------------------------------------------------------------
// Sudoku -- Puzzle Solver on GPU using CUDA
// ----------------------------------------------------------------
/**
* @file
* data.cuh
*
* @brief Stores data types to be used.
*/
#define PUZZLE_SIZE 9
/*
* Locked = -1;
* Open = 0;
* Guessed = 1-9;
*/
typedef int Lock;
typedef int vAnswer;
typedef int vPossible;
struct Square {
int value;
int isLocked;
int possValues[PUZZLE_SIZE];
}; /* Stores per square value for a puzzle */
struct CommandLineArgs {
int size;
bool graphics;
Square * Puzzle = new Square[PUZZLE_SIZE*PUZZLE_SIZE];
}; /* Stores command line arguments */
#endif