les classes game et tube servent à décrire et modifier les données du modèle du jeu la classe drawer s'occupe d'afficher le jeu dans la page web via les méthodes fournies par la librairie p5js la classe controller s'occupe de la logique interne aux régles du jeu la classe main sert à déclarer le controller ainsi que les méthodes appelées par la librairie p5jsmaster
|
||
4 | 4 |
|
5 | 5 |
|
6 | 6 |
|
7 |
|
|
7 |
|
|
8 | 8 |
|
9 |
|
|
10 |
|
|
11 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 | 12 |
|
13 | 13 |
|
14 |
|
|
14 | 15 |
|
15 | 16 |
|
16 | 17 |
|
|
||
28 | 29 |
|
29 | 30 |
|
30 | 31 |
|
31 |
|
|
32 |
|
|
32 |
|
|
33 |
|
|
33 | 34 |
|
34 |
|
|
35 |
|
|
35 | 36 |
|
36 | 37 |
|
37 | 38 |
|
|
||
1 |
|
|
1 |
|
|
2 | 2 |
|
3 |
|
|
4 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
5 | 24 |
|
6 |
|
|
7 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
8 | 39 |
|
9 |
|
|
10 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
|
59 |
|
|
60 |
|
|
61 |
|
|
62 |
|
|
11 | 63 |
|
12 |
|
|
64 |
|
|
65 |
|
|
66 |
|
|
67 |
|
|
68 |
|
|
69 |
|
|
70 |
|
|
71 |
|
|
72 |
|
|
73 |
|
|
74 |
|
|
75 |
|
|
76 |
|
|
77 |
|
|
78 |
|
|
13 | 79 |
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
80 |
|
|
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
|
85 |
|
|
86 |
|
|
20 | 87 |
|
21 |
|
|
88 |
|
|
22 | 89 |
|
23 |
|
|
90 |
|
|
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
24 | 97 |
|
25 | 98 |
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
99 |
|
|
100 |
|
|
101 |
|
|
102 |
|
|
103 |
|
|
104 |
|
|
105 |
|
|
106 |
|
|
46 | 107 |
|
47 |
|
|
108 |
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
|
|
48 | 123 |
|
49 |
|
|
124 |
|
|
125 |
|
|
126 |
|
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
50 | 132 |
|
|
||
1 | 1 |
|
2 | 2 |
|
3 |
|
|
4 |
|
|
3 |
|
|
5 | 4 |
|
6 |
|
|
5 |
|
|
7 | 6 |
|
8 | 7 |
|
8 |
|
|
9 | 9 |
|
10 |
|
|
10 |
|
|
11 | 11 |
|
12 | 12 |
|
13 |
|
|
13 |
|
|
14 | 14 |
|
15 |
|
|
16 |
|
|
17 |
|
|
15 |
|
|
16 |
|
|
18 | 17 |
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
18 |
|
|
23 | 19 |
|
24 | 20 |
|
25 | 21 |
|
26 | 22 |
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
23 |
|
|
31 | 24 |
|
32 |
|
|
25 |
|
|
33 | 26 |
|
34 | 27 |
|
35 |
|
|
28 |
|
|
36 | 29 |
|
37 | 30 |
|
38 | 31 |
|
39 | 32 |
|
40 | 33 |
|
41 |
|
|
42 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
43 | 38 |
|
44 | 39 |
|
45 |
|
|
46 |
|
|
40 |
|
|
41 |
|
|
47 | 42 |
|
48 | 43 |
|
49 | 44 |
|
50 | 45 |
|
46 |
|
|
51 | 47 |
|
52 |
|
|
48 |
|
|
53 | 49 |
|
54 |
|
|
50 |
|
|
55 | 51 |
|
56 | 52 |
|
57 | 53 |
|
58 | 54 |
|
59 | 55 |
|
60 | 56 |
|
61 |
|
|
57 |
|
|
62 | 58 |
|
63 | 59 |
|
64 | 60 |
|
|
||
67 | 63 |
|
68 | 64 |
|
69 | 65 |
|
70 |
|
|
71 |
|
|
66 |
|
|
67 |
|
|
72 | 68 |
|
73 | 69 |
|
74 | 70 |
|
75 | 71 |
|
76 | 72 |
|
77 | 73 |
|
78 |
|
|
79 |
|
|
74 |
|
|
75 |
|
|
80 | 76 |
|
81 | 77 |
|
|
||
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 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
||
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 |
|
|
||
28 | 28 |
|
29 | 29 |
|
30 | 30 |
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
31 | 36 |
|
32 | 37 |
|
33 | 38 |
|
|
||
38 | 43 |
|
39 | 44 |
|
40 | 45 |
|
41 |
|
|
46 |
|
|
42 | 47 |
|
43 | 48 |
|
44 | 49 |
|
|
||
59 | 64 |
|
60 | 65 |
|
61 | 66 |
|
62 |
|
|
67 |
|
|
63 | 68 |
|
64 | 69 |
|
65 | 70 |
|