-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
executable file
·77 lines (65 loc) · 2.17 KB
/
README
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Ben Ripka
ID 1465622
Evan Perret Timms
ID 1504825
Notes: Some code(along with comments) provided in class was reused indirectly throughout the assignment
accessories:
*1 Arduino Mega Board
*1 joystick
*1 LCD screen
*1 SD card w/ map of edmonton+restaurant data
Wiring: from bottom to top on the right side (the side with the pins).
Board Pin <---> Arduino Pin
===========================
GND GND
Vin 5V
3Vo NOT CONNECTED
CLK 52
MISO 50
MOSI 51
CS 10
D/C 9
RST NOT CONNECTED
Lite NOT CONNECTED
Y+ A2 (analog pin)
X+ 4 (digital pin)
Y- 5 (digital pin)
X- A3 (analog pin)
IM0 - IM3 NOT CONNECTED (they expect a 3.3v signal, DON'T CONNECT!)
CCS 6
CD NOT CONNECTED
===========================
Joy Pin <---> Arduino Pin
===========================
GND GND
5V 5V
VRx A1
VRy A0
SW 2
===========================
Instructions:
1. Insert SD card
2. Compile and upload code
Features:
1.Playing board that is navigable with the joystick
2.Algorithm that places a certain number of mines based on the difficulty selected
before the game begins
3.Pressing the button on the joystick will clear surrounding spaces that do not
contain the mines
4.Numbers will be displayed on tiles that are adjacent to mines. The the
number displayed refers to the number of adjacent mines
5.Clearing all the free spaces will result in a perfect score
6.Score is counted based on number of cleared spaces
7.At the end of the game the score will be displayed on the screen, then after
certain time period it will restart.
8.Separate button for flag placement
9.'Custom' game mode which uses a potentiometer to adjust a certain number of
mines
1st Milestone: v0.07 23/11/2017
-Playing Board implemented which cursor controlled by the joystick that is
able to navigate the screen. Pressing the button on the cursor on top of a mine
will end the game
-Algorithm places mines(not based on difficulty, just set value)
-Board does not clear spaces
-Score function structure is present but not functional
2nd Milestone: