about summary refs log tree commit diff stats
path: root/html/083scenario_screen_test.mu.html
Commit message (Expand)AuthorAgeFilesLines
* 4200Kartik K. Agaram2018-01-271-7/+7
* 4199Kartik K. Agaram2018-01-251-19/+18
* 4161Kartik K. Agaram2017-12-151-4/+4
* 3951Kartik K. Agaram2017-06-241-4/+19
* 3867Kartik K. Agaram2017-05-191-2/+2
* 3855Kartik K. Agaram2017-05-131-2/+2
* 3825Kartik K. Agaram2017-04-161-2/+2
* 3764 - better colors for cross-linksKartik K. Agaram2017-03-081-3/+4
* 3761Kartik K. Agaram2017-03-071-9/+10
* 3716Kartik K. Agaram2016-12-261-0/+2
* 3713 - cross-link calls with definitions in htmlKartik K. Agaram2016-12-261-4/+4
* 3710Kartik K. Agaram2016-12-261-32/+32
* 3709 - line numbers in htmlKartik K. Agaram2016-12-261-35/+59
* 3569Kartik K. Agaram2016-10-231-6/+6
* 3431Kartik K. Agaram2016-09-301-1/+1
* 3430Kartik K. Agaram2016-09-281-8/+7
* 3395Kartik K. Agaram2016-09-171-6/+6
* 3021Kartik K. Agaram2016-05-271-4/+6
* 2866Kartik K. Agaram2016-04-251-4/+4
* 2812Kartik K. Agaram2016-03-271-7/+16
* 2745Kartik K. Agaram2016-03-091-1/+1
* 2744Kartik K. Agaram2016-03-091-1/+1
* 2743Kartik K. Agaram2016-03-091-16/+7
* 2605Kartik K. Agaram2016-01-261-4/+6
* 2611Kartik K. Agaram2015-11-291-2/+2
* 2430 - make room for more transformsKartik K. Agaram2015-11-131-0/+63
ld into radically //: different shapes without breaking in subtle corner cases. The premise is //: that understandability and rewrite-friendliness are related in a virtuous //: cycle. Doing one well makes it easier to do the other. //: //: Lower down, this file contains a legal, bare-bones C++ program. It doesn't //: do anything yet; subsequent files will contain :(...) directives to insert //: lines into it. For example: //: :(after "more events") //: This directive means: insert the following lines after a line in the //: program containing the words "more events". //: //: A simple tool is included to 'tangle' all the files together in sequence //: according to their directives into a single source file containing all the //: code for the project, and then feed the source file to the compiler. //: (It'll drop these comments starting with a '//:' prefix that only make //: sense before tangling.) //: //: Directives free up the programmer to order code for others to read rather //: than as forced by the computer or compiler. Each individual feature can be //: organized in a self-contained 'layer' that adds code to many different data //: structures and functions all over the program. The right decomposition into //: layers will let each layer make sense in isolation. //: //: "If I look at any small part of it, I can see what is going on -- I don't //: need to refer to other parts to understand what something is doing. //: //: If I look at any large part in overview, I can see what is going on -- I //: don't need to know all the details to get it. //: //: Every level of detail is as locally coherent and as well thought-out as //: any other level." //: //: -- Richard Gabriel, "The Quality Without A Name" //: (http://dreamsongs.com/Files/PatternsOfSoftware.pdf, page 42) //: //: Directives are powerful; they permit inserting or modifying any point in //: the program. Using them tastefully requires mapping out specific lines as //: waypoints for future layers to hook into. Often such waypoints will be in //: comments, capitalized to hint that other layers rely on their presence. //: //: A single waypoint might have many different code fragments hooking into //: it from all over the codebase. Use 'before' directives to insert //: code at a location in order, top to bottom, and 'after' directives to //: insert code in reverse order. By convention waypoints intended for insertion //: before begin with 'End'. Notice below how the layers line up above the "End //: Foo" waypoint. //: //: File 001 File 002 File 003 //: ============ =================== =================== //: // Foo //: ------------ //: <---- :(before "End Foo") //: .... //: ... //: ------------ //: <---------------------------- :(before "End Foo") //: .... //: ... //: // End Foo //: ============ //: //: Here's part of a layer in color: http://i.imgur.com/0eONnyX.png. Directives //: are shaded dark. //: //: Layers do more than just shuffle code around. In a well-organized codebase //: it should be possible to stop loading after any file/layer, build and run //: the program, and pass all tests for loaded features. (Relevant is //: http://youtube.com/watch?v=c8N72t7aScY, a scene from "2001: A Space //: Odyssey".) Get into the habit of running the included script called //: 'test_all_layers' before you commit any changes. //: //: This 'subsetting guarantee' ensures that this directory contains a //: cleaned-up narrative of the evolution of this codebase. Organizing //: autobiographically allows a newcomer to rapidly orient himself, reading the //: first few files to understand a simple gestalt of a program's core purpose //: and features, and later gradually working his way through other features as //: the need arises. //: //: Programmers shouldn't need to understand everything about a program to hack //: on it. But they shouldn't be prevented from a thorough understanding of //: each aspect either. The goal of layers is to reward curiosity. // Includes // End Includes // Types // End Types // prototypes are auto-generated in the makefile; define your functions in any order #include "function_list" // by convention, files ending with '_list' are auto-generated // Globals // End Globals int main(int argc, char* argv[]) { atexit(teardown); // End One-time Setup // Commandline Parsing // End Commandline Parsing return 0; // End Main } //: our first directive; will move the include above the program :(before "End Includes") #include<stdlib.h> //: Without directives or with the :(code) directive, lines get added at the //: end. :(code) void setup() { // End Setup } void teardown() { // End Teardown } it/chessboard.mu?h=main&id=d9fbe9c1ca8919f0dba5d5b606b1d5609d3ee73a'>d9fbe9c1 ^
455fbac6 ^
83d8299d ^
d9fbe9c1 ^
455fbac6 ^
83d8299d ^
d9fbe9c1 ^
455fbac6 ^
d9fbe9c1 ^
3f7eed6c ^
ce87c19e ^



d9fbe9c1 ^
3f7eed6c ^
ce87c19e ^

d9fbe9c1 ^
3f7eed6c ^
d9fbe9c1 ^
ce87c19e ^

3f7eed6c ^
455fbac6 ^
ce87c19e ^


d9fbe9c1 ^
ce87c19e ^
104854ca ^
d9fbe9c1 ^

455fbac6 ^
d9fbe9c1 ^
d9fbe9c1 ^

9d670bb5 ^
0b45be43 ^
455fbac6 ^
77d5b5d6 ^
104854ca ^
768bdb4d ^
ce87c19e ^


768bdb4d ^
455fbac6 ^
bc643692 ^
768bdb4d ^
ce87c19e ^

455fbac6 ^
ce87c19e ^

768bdb4d ^

768bdb4d ^

455fbac6 ^
77d5b5d6 ^
104854ca ^
ce87c19e ^
104854ca ^
bc643692 ^
768bdb4d ^
ce87c19e ^





768bdb4d ^

768bdb4d ^

455fbac6 ^
77d5b5d6 ^
104854ca ^
bc643692 ^
bbe0801a ^
768bdb4d ^

ce87c19e ^

768bdb4d ^
ce87c19e ^

455fbac6 ^
3f7eed6c ^
768bdb4d ^
bc643692 ^
768bdb4d ^
bc643692 ^
768bdb4d ^
455fbac6 ^
ce87c19e ^
136412d2 ^
bbe0801a ^
ce87c19e ^
768bdb4d ^

ce87c19e ^

768bdb4d ^


ce87c19e ^
3f7eed6c ^
ce87c19e ^
ce87c19e ^
3f7eed6c ^
ce87c19e ^
768bdb4d ^

455fbac6 ^
77d5b5d6 ^
e0053bcb ^








455fbac6 ^
bc643692 ^







104854ca ^
e0053bcb ^


bc643692 ^
e0053bcb ^
455fbac6 ^

768bdb4d ^














768bdb4d ^

9d670bb5 ^

0b45be43 ^
9d670bb5 ^

5497090a ^



9d670bb5 ^

4071055a ^
455fbac6 ^
77d5b5d6 ^
104854ca ^
ce87c19e ^


9d670bb5 ^
455fbac6 ^
ce87c19e ^









bc643692 ^

ce87c19e ^



ce87c19e ^


9d670bb5 ^

4071055a ^
455fbac6 ^
77d5b5d6 ^
104854ca ^
ce87c19e ^
9d670bb5 ^
ce87c19e ^

bc643692 ^
01aeedd9 ^

ce87c19e ^

bc643692 ^
9d670bb5 ^
971e710d ^
ce87c19e ^

bc643692 ^
5d6d9110 ^

ce87c19e ^

455fbac6 ^
3f7eed6c ^
bc643692 ^
971e710d ^
ce87c19e ^
9d670bb5 ^
4071055a ^
ce87c19e ^

455fbac6 ^
3f7eed6c ^
136412d2 ^
ce87c19e ^
bc643692 ^
4071055a ^

ce87c19e ^


3f7eed6c ^
136412d2 ^
bc643692 ^
4071055a ^
ce87c19e ^
9d670bb5 ^

4071055a ^
455fbac6 ^
77d5b5d6 ^
104854ca ^
ce87c19e ^
9d670bb5 ^
ce87c19e ^

bc643692 ^
01aeedd9 ^

ce87c19e ^

bc643692 ^
9d670bb5 ^
971e710d ^
ce87c19e ^

455fbac6 ^
3f7eed6c ^
bc643692 ^
971e710d ^
ce87c19e ^
9d670bb5 ^
4071055a ^
ce87c19e ^


3f7eed6c ^
136412d2 ^
bc643692 ^
4071055a ^

ce87c19e ^


3f7eed6c ^
136412d2 ^
bc643692 ^
4071055a ^
ce87c19e ^
9d670bb5 ^


4071055a ^
455fbac6 ^
77d5b5d6 ^
104854ca ^
ce87c19e ^
4071055a ^
ce87c19e ^

455fbac6 ^
3f7eed6c ^
4071055a ^
104854ca ^
9d670bb5 ^


bc643692 ^
9d670bb5 ^
455fbac6 ^

9d670bb5 ^
5497090a ^
5497090a ^
c106cabd ^
9d670bb5 ^


455fbac6 ^
5497090a ^
9d670bb5 ^
5497090a ^

c106cabd ^
9d670bb5 ^


455fbac6 ^
5497090a ^
9d670bb5 ^
5497090a ^

c106cabd ^
9d670bb5 ^


455fbac6 ^
5497090a ^
9d670bb5 ^
5497090a ^

c106cabd ^
9d670bb5 ^


455fbac6 ^
5497090a ^
9d670bb5 ^
5497090a ^

c106cabd ^
9d670bb5 ^


455fbac6 ^
5497090a ^
9d670bb5 ^
5497090a ^

c106cabd ^
9d670bb5 ^


455fbac6 ^
5497090a ^
9d670bb5 ^
5497090a ^

bc643692 ^
9d670bb5 ^

c106cabd ^
9d670bb5 ^




01aeedd9 ^

bc643692 ^
01aeedd9 ^
455fbac6 ^

01aeedd9 ^
5497090a ^

c106cabd ^
01aeedd9 ^


455fbac6 ^
5497090a ^
01aeedd9 ^
5497090a ^

bc643692 ^
01aeedd9 ^

c106cabd ^
01aeedd9 ^






bc643692 ^
01aeedd9 ^
455fbac6 ^

01aeedd9 ^
5497090a ^

c106cabd ^
01aeedd9 ^

455fbac6 ^
5497090a ^

01aeedd9 ^
4071055a ^


01aeedd9 ^



bc643692 ^
01aeedd9 ^
455fbac6 ^

01aeedd9 ^
5497090a ^

c106cabd ^
01aeedd9 ^

455fbac6 ^

5497090a ^

01aeedd9 ^
4071055a ^


971e710d ^



bc643692 ^
971e710d ^
455fbac6 ^

971e710d ^
5497090a ^

c106cabd ^
971e710d ^

455fbac6 ^

5497090a ^

971e710d ^



01aeedd9 ^

1abde57f ^
455fbac6 ^
77d5b5d6 ^
104854ca ^
ce87c19e ^
ce87c19e ^
ce87c19e ^
ce87c19e ^
455fbac6 ^
ce87c19e ^
104854ca ^
ce87c19e ^
ce87c19e ^

1abde57f ^


bc643692 ^
1abde57f ^
455fbac6 ^


ce87c19e ^
455fbac6 ^
ce87c19e ^
455fbac6 ^
ce87c19e ^
455fbac6 ^
ce87c19e ^
455fbac6 ^

1abde57f ^













1abde57f ^

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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590