Skip to content

Commit a9c4aaf

Browse files
committed
Documented parameters of frustration
1 parent 5b83798 commit a9c4aaf

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,32 @@ that there is something wrong as the game advances, with heightened
2929
frequency when players enter a critical phase with little space left.
3030

3131

32+
Frustration Parameters
33+
======================
34+
35+
- Player frustration is only active when so many or fewer empty rows:
36+
(l.86) frStart = 8
37+
38+
- The probability to apply frustration (if active, as per above) is:
39+
(l. 455) screwPlayer = 1.0 / nEMPTY
40+
where nEMPTY is the number of empty rows
41+
If this kicks in, they two types are equally probable.
42+
43+
In order to make one more likely, we need to :
44+
* Have different "screwPlayer" variables initialized in l. 94
45+
* Calculate differently in l. 455
46+
* Use different variable to activate each type of frustration
47+
in l. 225 (ignore) and l. 238 (drop to bottom)
48+
49+
- If "dead key" is chosen, between 1 and 8 "ignores" are pushed into
50+
the action queue:
51+
(l. 229) n = Math.random(1, 8)
52+
Each ignore actions needs one keystroke to be
53+
shifted out, eating up the actual action.
54+
55+
- If "drop to bottom" is chosen, the current brick will fall all the way
56+
to the bottom, regardless of what action was choses. No parameters here.
57+
3258

3359
License
3460
=======

0 commit comments

Comments
 (0)