-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildSuffledIndex.rtf
253 lines (245 loc) · 6.93 KB
/
BuildSuffledIndex.rtf
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
{\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170
{\fonttbl\f0\fmodern\fcharset0 Courier-Bold;\f1\fmodern\fcharset0 Courier;}
{\colortbl;\red255\green255\blue255;\red0\green0\blue255;\red247\green247\blue247;\red38\green38\blue38;
\red83\green77\blue192;\red15\green112\blue1;\red251\green0\blue7;}
\paperw11900\paperh16840\margl1440\margr1440\vieww25400\viewh13700\viewkind0
\deftab720
\pard\pardeftab720
\f0\b\fs28 \cf2 \cb3 \expnd0\expndtw0\kerning0
private
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
\f0\b \cf5 \expnd0\expndtw0\kerning0
void
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
BuildSuffledIndexes \cf6 \expnd0\expndtw0\kerning0
()\cf4 \expnd0\expndtw0\kerning0
\
\cf6 \expnd0\expndtw0\kerning0
\{\cf4 \expnd0\expndtw0\kerning0
\
tiles \cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
new\cf4 \expnd0\expndtw0\kerning0
List \cf6 \expnd0\expndtw0\kerning0
();\cf4 \expnd0\expndtw0\kerning0
\
gridTiles \cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
new\cf4 \expnd0\expndtw0\kerning0
List\cf6 \expnd0\expndtw0\kerning0
&\cf4 \expnd0\expndtw0\kerning0
lt\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
List\cf6 \expnd0\expndtw0\kerning0
&\cf4 \expnd0\expndtw0\kerning0
gt\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
();\cf4 \expnd0\expndtw0\kerning0
\
\'a0\
gridIndexes \cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
new\cf4 \expnd0\expndtw0\kerning0
List \cf6 \expnd0\expndtw0\kerning0
();\cf4 \expnd0\expndtw0\kerning0
\
Cell indexer\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
\
\f0\b \cf2 \expnd0\expndtw0\kerning0
for
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
(
\f0\b \cf5 \expnd0\expndtw0\kerning0
int
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
column \cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
\cf7 \expnd0\expndtw0\kerning0
0\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
column \cf6 \expnd0\expndtw0\kerning0
&\cf4 \expnd0\expndtw0\kerning0
lt\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
COLUMNS\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
column\cf6 \expnd0\expndtw0\kerning0
++)\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
\{\cf4 \expnd0\expndtw0\kerning0
\
\'a0\
\f0\b \cf2 \expnd0\expndtw0\kerning0
var
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
columnTiles \cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
new\cf4 \expnd0\expndtw0\kerning0
List\cf6 \expnd0\expndtw0\kerning0
();\cf4 \expnd0\expndtw0\kerning0
\
\'a0\
\f0\b \cf2 \expnd0\expndtw0\kerning0
for
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
(
\f0\b \cf5 \expnd0\expndtw0\kerning0
int
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
row \cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
\cf7 \expnd0\expndtw0\kerning0
0\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
row \cf6 \expnd0\expndtw0\kerning0
&\cf4 \expnd0\expndtw0\kerning0
lt\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
ROWS\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
row\cf6 \expnd0\expndtw0\kerning0
++)\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
\{\cf4 \expnd0\expndtw0\kerning0
\
indexer \cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
new\cf4 \expnd0\expndtw0\kerning0
Cell\cf6 \expnd0\expndtw0\kerning0
();\cf4 \expnd0\expndtw0\kerning0
\
indexer\cf6 \expnd0\expndtw0\kerning0
.\cf2 \expnd0\expndtw0\kerning0
column\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
column\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
\
indexer\cf6 \expnd0\expndtw0\kerning0
.\cf2 \expnd0\expndtw0\kerning0
row\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
row\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
\
gridIndexes\cf6 \expnd0\expndtw0\kerning0
.
\f0\b \cf2 \expnd0\expndtw0\kerning0
Add
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
(\cf4 \expnd0\expndtw0\kerning0
indexer\cf6 \expnd0\expndtw0\kerning0
);\cf4 \expnd0\expndtw0\kerning0
\
\'a0\
\f0\b \cf2 \expnd0\expndtw0\kerning0
var
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
item \cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
Instantiate \cf6 \expnd0\expndtw0\kerning0
(\cf4 \expnd0\expndtw0\kerning0
gridTileGO\cf6 \expnd0\expndtw0\kerning0
)\cf4 \expnd0\expndtw0\kerning0
\f0\b \cf2 \expnd0\expndtw0\kerning0
as
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
GameObject\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
\
\f0\b \cf2 \expnd0\expndtw0\kerning0
var
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
tile \cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
item\cf6 \expnd0\expndtw0\kerning0
.\cf2 \expnd0\expndtw0\kerning0
GetComponent\cf6 \expnd0\expndtw0\kerning0
();\cf4 \expnd0\expndtw0\kerning0
\
tile\cf6 \expnd0\expndtw0\kerning0
.\cf2 \expnd0\expndtw0\kerning0
SetTilePosition\cf6 \expnd0\expndtw0\kerning0
(
\f0\b \cf2 \expnd0\expndtw0\kerning0
this
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
, column, row\cf6 \expnd0\expndtw0\kerning0
);\cf4 \expnd0\expndtw0\kerning0
\
tile\cf6 \expnd0\expndtw0\kerning0
.\cf2 \expnd0\expndtw0\kerning0
transform\cf6 \expnd0\expndtw0\kerning0
.\cf2 \expnd0\expndtw0\kerning0
parent\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
=\cf4 \expnd0\expndtw0\kerning0
gameObject\cf6 \expnd0\expndtw0\kerning0
.\cf2 \expnd0\expndtw0\kerning0
transform\cf6 \expnd0\expndtw0\kerning0
;\cf4 \expnd0\expndtw0\kerning0
\
tiles\cf6 \expnd0\expndtw0\kerning0
.
\f0\b \cf2 \expnd0\expndtw0\kerning0
Add
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
(\cf4 \expnd0\expndtw0\kerning0
tile\cf6 \expnd0\expndtw0\kerning0
);\cf4 \expnd0\expndtw0\kerning0
\
columnTiles\cf6 \expnd0\expndtw0\kerning0
.
\f0\b \cf2 \expnd0\expndtw0\kerning0
Add
\f1\b0 \cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
(\cf4 \expnd0\expndtw0\kerning0
tile\cf6 \expnd0\expndtw0\kerning0
);\cf4 \expnd0\expndtw0\kerning0
\
\cf6 \expnd0\expndtw0\kerning0
\}\cf4 \expnd0\expndtw0\kerning0
\
gridTiles\cf6 \expnd0\expndtw0\kerning0
.
\f0\b \cf2 \expnd0\expndtw0\kerning0
Add
\f1\b0 \cf6 \expnd0\expndtw0\kerning0
(\cf4 \expnd0\expndtw0\kerning0
columnTiles\cf6 \expnd0\expndtw0\kerning0
);\cf4 \expnd0\expndtw0\kerning0
\
\cf6 \expnd0\expndtw0\kerning0
\}\cf4 \expnd0\expndtw0\kerning0
\
\'a0\
WordData\cf6 \expnd0\expndtw0\kerning0
.\cf2 \expnd0\expndtw0\kerning0
ShuffleList\cf4 \expnd0\expndtw0\kerning0
\cf6 \expnd0\expndtw0\kerning0
(\cf4 \expnd0\expndtw0\kerning0
gridIndexes\cf6 \expnd0\expndtw0\kerning0
);\cf4 \expnd0\expndtw0\kerning0
\
\cf6 \expnd0\expndtw0\kerning0
\}\cf4 \expnd0\expndtw0\kerning0
\
\'a0\
\cf6 \expnd0\expndtw0\kerning0
\}\
\
}