forked from bdemeshev/gt201
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoop_3player.asy
65 lines (34 loc) · 971 Bytes
/
coop_3player.asy
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
import unicode;
import three;
import graph3;
import settings;
outformat="pdf";
prc=false; /* no 3d models - just 2d projection */
texpreamble("\usepackage{mathtext}\usepackage[russian]{babel}");
defaultpen(font("T2A","cmr","m","n"));
/* Core of 3 player unanimity game */
real a=0.7;
size(0,200);
size3(200,IgnoreAspect);
currentprojection=perspective(5,2,2);
scale(Linear,Linear,Linear);
xaxis3("$x$",0,1,Arrow3);
yaxis3("$y$",0,1,Arrow3);
zaxis3("$z$",0,1,Arrow3);
draw((0,a,1-a)--(0,1-a,a)--(1-a,0,a)--(a,0,1-a)--(a,1-a,0)--(1-a,a,0)--cycle);
draw((a,0,0)--(a,1-a,0),red);
draw((0,1-a,0)--(a,1-a,0),red);
draw((1-a,0,0)--(1-a,a,0),red);
draw((0,a,0)--(1-a,a,0),red);
dot((a,1-a,0));
dot((1-a,a,0));
dot((0,a,1-a));
dot((0,1-a,a));
dot((a,0,1-a));
dot((1-a,0,a));
label("$\alpha$",(a,0,0));
label("$\alpha$",(0,a,0));
label("$\alpha$",(0,0,a));
label("$1-\alpha$",(0,0,1-a));
label("$1-\alpha$",(0,1-a,0));
label("$1-\alpha$",(1-a,0,0));