We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e23c8a commit bcada3dCopy full SHA for bcada3d
resources/code/ping_pong/ping_pong_statem.erl
@@ -8,9 +8,11 @@
8
postcondition/3]).
9
10
-type name() :: atom().
11
+-type score() :: non_neg_integer().
12
13
-record(state, {players = [] :: [name()],
- scores = dict:new() :: dict:dict() | [{_,_}]}).
14
+ scores = dict:new() :: dict:dict(name(), score())
15
+ | [{name(), score()}]}).
16
17
-define(PLAYER, ping_pong).
18
-define(MASTER, ping_pong).
0 commit comments