Dogeku 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +39 -0
  4. data/app/Historique/Action.rb +29 -0
  5. data/app/Historique/ChangerCase.rb +44 -0
  6. data/app/Historique/HistoriqueAction.rb +114 -0
  7. data/app/components/CaseDessin.rb +325 -0
  8. data/app/components/GrilleDessin.rb +235 -0
  9. data/app/components/Header.rb +194 -0
  10. data/app/config/app.yml +0 -0
  11. data/app/config/database.yml +2 -0
  12. data/app/controller/ApprentissageControleur.rb +75 -0
  13. data/app/controller/ChargerControleur.rb +41 -0
  14. data/app/controller/JeuLibreControleur.rb +244 -0
  15. data/app/controller/MenuControleur.rb +57 -0
  16. data/app/controller/NiveauControleur.rb +54 -0
  17. data/app/controller/NouvellePartieControleur.rb +34 -0
  18. data/app/controller/PrincipaleControleur.rb +30 -0
  19. data/app/controller/PseudoControleur.rb +95 -0
  20. data/app/controller/ReglagesControleur.rb +86 -0
  21. data/app/controller/ReglesControleur.rb +34 -0
  22. data/app/controller/ScoresControleur.rb +42 -0
  23. data/app/controller/StatistiquesControleur.rb +64 -0
  24. data/app/core/Conf.rb +26 -0
  25. data/app/core/Controller.rb +180 -0
  26. data/app/core/Core.rb +186 -0
  27. data/app/core/Model.rb +159 -0
  28. data/app/core/View.rb +56 -0
  29. data/app/db/main.sqlite3 +0 -0
  30. data/app/model/Configuration.rb +180 -0
  31. data/app/model/Grille.rb +180 -0
  32. data/app/model/Jeu.rb +74 -0
  33. data/app/model/Score.rb +100 -0
  34. data/app/model/Utilisateur.rb +113 -0
  35. data/app/utils/DSubset.rb +98 -0
  36. data/app/utils/Generateur.rb +171 -0
  37. data/app/utils/HPTriple.rb +75 -0
  38. data/app/utils/Peche.rb +46 -0
  39. data/app/utils/SCandidate.rb +86 -0
  40. data/app/utils/SCell.rb +73 -0
  41. data/app/utils/Technique.rb +202 -0
  42. data/app/utils/TechniqueUsine.rb +25 -0
  43. data/app/utils/XWing.rb +203 -0
  44. data/app/view/Fenetre.rb +424 -0
  45. data/app/view/FenetreApprentissage.rb +272 -0
  46. data/app/view/FenetreCharger.rb +31 -0
  47. data/app/view/FenetreJeuLibre.rb +468 -0
  48. data/app/view/FenetreMenu.rb +198 -0
  49. data/app/view/FenetreNiveau.rb +105 -0
  50. data/app/view/FenetreNouvellePartie.rb +92 -0
  51. data/app/view/FenetrePrincipale.rb +45 -0
  52. data/app/view/FenetrePseudo.rb +115 -0
  53. data/app/view/FenetreReglages.rb +209 -0
  54. data/app/view/FenetreRegles.rb +111 -0
  55. data/app/view/FenetreScores.rb +120 -0
  56. data/app/view/FenetreStatistiques.rb +134 -0
  57. data/assets/css/style.css +69 -0
  58. data/assets/img/eraser.png +0 -0
  59. data/assets/img/fond.jpg +0 -0
  60. data/assets/img/iconApp.png +0 -0
  61. data/assets/img/logoS.jpeg +0 -0
  62. data/assets/img/sudokuIntro.jpg +0 -0
  63. data/assets/img/user.png +0 -0
  64. data/bin/dogeku +19 -0
  65. data/doc/Action.html +309 -0
  66. data/doc/ApprentissageControleur.html +568 -0
  67. data/doc/CaseDessin.html +2405 -0
  68. data/doc/ChangerCase.html +405 -0
  69. data/doc/ChargerControleur.html +342 -0
  70. data/doc/Conf.html +378 -0
  71. data/doc/Configuration.html +1115 -0
  72. data/doc/Controller.html +1008 -0
  73. data/doc/Core.html +1191 -0
  74. data/doc/DSubset.html +647 -0
  75. data/doc/Fenetre.html +2631 -0
  76. data/doc/FenetreApprentissage.html +1175 -0
  77. data/doc/FenetreCharger.html +343 -0
  78. data/doc/FenetreJeuLibre.html +1859 -0
  79. data/doc/FenetreMenu.html +900 -0
  80. data/doc/FenetreNiveau.html +626 -0
  81. data/doc/FenetreNouvellePartie.html +602 -0
  82. data/doc/FenetrePrincipale.html +371 -0
  83. data/doc/FenetrePseudo.html +695 -0
  84. data/doc/FenetreReglages.html +946 -0
  85. data/doc/FenetreRegles.html +636 -0
  86. data/doc/FenetreScores.html +650 -0
  87. data/doc/FenetreStatistiques.html +672 -0
  88. data/doc/Generateur.html +1015 -0
  89. data/doc/Grille.html +1348 -0
  90. data/doc/GrilleDessin.html +1281 -0
  91. data/doc/HPTriple.html +593 -0
  92. data/doc/Header.html +1253 -0
  93. data/doc/HistoriqueAction.html +792 -0
  94. data/doc/Jeu.html +923 -0
  95. data/doc/JeuLibreControleur.html +1445 -0
  96. data/doc/MenuControleur.html +522 -0
  97. data/doc/Model.html +996 -0
  98. data/doc/NiveauControleur.html +451 -0
  99. data/doc/NouvellePartieControleur.html +330 -0
  100. data/doc/Peche.html +396 -0
  101. data/doc/PrincipaleControleur.html +320 -0
  102. data/doc/PseudoControleur.html +695 -0
  103. data/doc/ReglagesControleur.html +747 -0
  104. data/doc/ReglesControleur.html +330 -0
  105. data/doc/SCandidate.html +617 -0
  106. data/doc/SCell.html +587 -0
  107. data/doc/Score.html +926 -0
  108. data/doc/ScoresControleur.html +346 -0
  109. data/doc/StatistiquesControleur.html +390 -0
  110. data/doc/Technique.html +543 -0
  111. data/doc/TechniqueUsine.html +252 -0
  112. data/doc/Utilisateur.html +806 -0
  113. data/doc/View.html +844 -0
  114. data/doc/XWing.html +1031 -0
  115. data/doc/_index.html +478 -0
  116. data/doc/class_list.html +51 -0
  117. data/doc/css/common.css +1 -0
  118. data/doc/css/full_list.css +58 -0
  119. data/doc/css/style.css +492 -0
  120. data/doc/file.README.html +141 -0
  121. data/doc/file_list.html +56 -0
  122. data/doc/frames.html +17 -0
  123. data/doc/index.html +141 -0
  124. data/doc/js/app.js +243 -0
  125. data/doc/js/full_list.js +216 -0
  126. data/doc/js/jquery.js +4 -0
  127. data/doc/method_list.html +2523 -0
  128. data/doc/top-level-namespace.html +112 -0
  129. data/test/Generateur/grilleCorrecte.rb +198 -0
  130. data/test/Model/scoreCorrecte.rb +55 -0
  131. data/test/Model/utilisateurCorrecte.rb +68 -0
  132. data/test/test_helper.rb +2 -0
  133. data/test/unitTest.rb +72 -0
  134. metadata +187 -0
@@ -0,0 +1,636 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: FenetreRegles
8
+
9
+ &mdash; Documentation by YARD 0.9.8
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "FenetreRegles";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (F)</a> &raquo;
40
+
41
+
42
+ <span class="title">FenetreRegles</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: FenetreRegles
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="View.html" title="View (class)">View</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="View.html" title="View (class)">View</a></span></li>
78
+
79
+ <li class="next">FenetreRegles</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>app/view/FenetreRegles.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>classe FenetreRegles</p>
108
+
109
+
110
+ </div>
111
+ </div>
112
+ <div class="tags">
113
+
114
+
115
+ </div>
116
+
117
+
118
+ <h2>Constant Summary</h2>
119
+
120
+ <h3 class="inherited">Constants included
121
+ from <span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></h3>
122
+ <p class="inherited"><span class='object_link'><a href="Fenetre.html#COULEUR_BLANC-constant" title="Fenetre::COULEUR_BLANC (constant)">Fenetre::COULEUR_BLANC</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_BLEU-constant" title="Fenetre::COULEUR_BLEU (constant)">Fenetre::COULEUR_BLEU</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_JAUNE-constant" title="Fenetre::COULEUR_JAUNE (constant)">Fenetre::COULEUR_JAUNE</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_ORANGE-constant" title="Fenetre::COULEUR_ORANGE (constant)">Fenetre::COULEUR_ORANGE</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_ROUGE-constant" title="Fenetre::COULEUR_ROUGE (constant)">Fenetre::COULEUR_ROUGE</a></span>, <span class='object_link'><a href="Fenetre.html#COULEUR_VERT-constant" title="Fenetre::COULEUR_VERT (constant)">Fenetre::COULEUR_VERT</a></span>, <span class='object_link'><a href="Fenetre.html#FONT_MENU-constant" title="Fenetre::FONT_MENU (constant)">Fenetre::FONT_MENU</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_AUTRE_JEU-constant" title="Fenetre::SIZE_AUTRE_JEU (constant)">Fenetre::SIZE_AUTRE_JEU</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_CONTENU_REGLE-constant" title="Fenetre::SIZE_CONTENU_REGLE (constant)">Fenetre::SIZE_CONTENU_REGLE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_CONTENU_SCORE-constant" title="Fenetre::SIZE_CONTENU_SCORE (constant)">Fenetre::SIZE_CONTENU_SCORE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_CONTENU_STAT-constant" title="Fenetre::SIZE_CONTENU_STAT (constant)">Fenetre::SIZE_CONTENU_STAT</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_LABEL_BOUTON-constant" title="Fenetre::SIZE_LABEL_BOUTON (constant)">Fenetre::SIZE_LABEL_BOUTON</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_PSEUDO-constant" title="Fenetre::SIZE_PSEUDO (constant)">Fenetre::SIZE_PSEUDO</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE-constant" title="Fenetre::SIZE_TITRE (constant)">Fenetre::SIZE_TITRE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_JEU-constant" title="Fenetre::SIZE_TITRE_JEU (constant)">Fenetre::SIZE_TITRE_JEU</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_REGLAGE-constant" title="Fenetre::SIZE_TITRE_REGLAGE (constant)">Fenetre::SIZE_TITRE_REGLAGE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_REGLE-constant" title="Fenetre::SIZE_TITRE_REGLE (constant)">Fenetre::SIZE_TITRE_REGLE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_SCORE-constant" title="Fenetre::SIZE_TITRE_SCORE (constant)">Fenetre::SIZE_TITRE_SCORE</a></span>, <span class='object_link'><a href="Fenetre.html#SIZE_TITRE_STAT-constant" title="Fenetre::SIZE_TITRE_STAT (constant)">Fenetre::SIZE_TITRE_STAT</a></span></p>
123
+
124
+
125
+
126
+
127
+ <h2>Instance Attribute Summary</h2>
128
+
129
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="View.html" title="View (class)">View</a></span></h3>
130
+ <p class="inherited"><span class='object_link'><a href="View.html#content=-instance_method" title="View#content= (method)">#content</a></span>, <span class='object_link'><a href="View.html#controller-instance_method" title="View#controller (method)">#controller</a></span>, <span class='object_link'><a href="View.html#headerBar-instance_method" title="View#headerBar (method)">#headerBar</a></span>, <span class='object_link'><a href="View.html#window-instance_method" title="View#window (method)">#window</a></span></p>
131
+
132
+
133
+
134
+ <h2>
135
+ Instance Method Summary
136
+ <small><a href="#" class="summary_toggle">collapse</a></small>
137
+ </h2>
138
+
139
+ <ul class="summary">
140
+
141
+ <li class="public ">
142
+ <span class="summary_signature">
143
+
144
+ <a href="#ajoutCss-instance_method" title="#ajoutCss (instance method)">#<strong>ajoutCss</strong> &#x21d2; Object </a>
145
+
146
+
147
+
148
+ </span>
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+ <span class="summary_desc"><div class='inline'>
159
+ <p>Ajoute les classes css au widget.</p>
160
+ </div></span>
161
+
162
+ </li>
163
+
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#creerBoxTop-instance_method" title="#creerBoxTop (instance method)">#<strong>creerBoxTop</strong> &#x21d2; Object </a>
169
+
170
+
171
+
172
+ </span>
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+ <span class="summary_desc"><div class='inline'>
183
+ <p>Créer la box verticale contenant le texte explicatif et le titre.</p>
184
+ </div></span>
185
+
186
+ </li>
187
+
188
+
189
+ <li class="public ">
190
+ <span class="summary_signature">
191
+
192
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; FenetreRegles </a>
193
+
194
+
195
+
196
+ </span>
197
+
198
+
199
+ <span class="note title constructor">constructor</span>
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ <span class="summary_desc"><div class='inline'>
209
+ <p>Initialize.</p>
210
+ </div></span>
211
+
212
+ </li>
213
+
214
+
215
+ <li class="public ">
216
+ <span class="summary_signature">
217
+
218
+ <a href="#miseEnPlace-instance_method" title="#miseEnPlace (instance method)">#<strong>miseEnPlace</strong> &#x21d2; Object </a>
219
+
220
+
221
+
222
+ </span>
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+ <span class="summary_desc"><div class='inline'>
233
+ <p>Permet de créer et d&#39;ajouter les box au conteneur principal.</p>
234
+ </div></span>
235
+
236
+ </li>
237
+
238
+
239
+ <li class="public ">
240
+ <span class="summary_signature">
241
+
242
+ <a href="#run-instance_method" title="#run (instance method)">#<strong>run</strong> &#x21d2; Object </a>
243
+
244
+
245
+
246
+ </span>
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+ <span class="summary_desc"><div class='inline'>
257
+ <p>Lance la construction du modèle de la vue.</p>
258
+ </div></span>
259
+
260
+ </li>
261
+
262
+
263
+ </ul>
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="View.html" title="View (class)">View</a></span></h3>
276
+ <p class="inherited"><span class='object_link'><a href="View.html#inherited-class_method" title="View.inherited (method)">inherited</a></span>, <span class='object_link'><a href="View.html#setInstanceVars-instance_method" title="View#setInstanceVars (method)">#setInstanceVars</a></span></p>
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></h3>
287
+ <p class="inherited"><span class='object_link'><a href="Fenetre.html#appliquerStyle-class_method" title="Fenetre.appliquerStyle (method)">appliquerStyle</a></span>, <span class='object_link'><a href="Fenetre.html#boutonAnnuler_barre-class_method" title="Fenetre.boutonAnnuler_barre (method)">boutonAnnuler_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonMenu_barre-class_method" title="Fenetre.boutonMenu_barre (method)">boutonMenu_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonPauseChrono_barre-class_method" title="Fenetre.boutonPauseChrono_barre (method)">boutonPauseChrono_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonPlayChrono_barre-class_method" title="Fenetre.boutonPlayChrono_barre (method)">boutonPlayChrono_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonQuitter_barre-class_method" title="Fenetre.boutonQuitter_barre (method)">boutonQuitter_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonReinit_barre-class_method" title="Fenetre.boutonReinit_barre (method)">boutonReinit_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonRetablir_barre-class_method" title="Fenetre.boutonRetablir_barre (method)">boutonRetablir_barre</a></span>, <span class='object_link'><a href="Fenetre.html#boutonRetour-class_method" title="Fenetre.boutonRetour (method)">boutonRetour</a></span>, <span class='object_link'><a href="Fenetre.html#boutonSauvegarder_barre-class_method" title="Fenetre.boutonSauvegarder_barre (method)">boutonSauvegarder_barre</a></span>, <span class='object_link'><a href="Fenetre.html#box-class_method" title="Fenetre.box (method)">box</a></span>, <span class='object_link'><a href="Fenetre.html#creerBarreMenu-class_method" title="Fenetre.creerBarreMenu (method)">creerBarreMenu</a></span>, <span class='object_link'><a href="Fenetre.html#creerBoxBottom-class_method" title="Fenetre.creerBoxBottom (method)">creerBoxBottom</a></span>, <span class='object_link'><a href="Fenetre.html#creerLabelType-class_method" title="Fenetre.creerLabelType (method)">creerLabelType</a></span>, <span class='object_link'><a href="Fenetre.html#creerPopup-class_method" title="Fenetre.creerPopup (method)">creerPopup</a></span>, <span class='object_link'><a href="Fenetre.html#css-class_method" title="Fenetre.css (method)">css</a></span>, <span class='object_link'><a href="Fenetre.html#detruire-class_method" title="Fenetre.detruire (method)">detruire</a></span>, <span class='object_link'><a href="Fenetre.html#enteteFenetre-class_method" title="Fenetre.enteteFenetre (method)">enteteFenetre</a></span>, <span class='object_link'><a href="Fenetre.html#fenetre-class_method" title="Fenetre.fenetre (method)">fenetre</a></span>, <span class='object_link'><a href="Fenetre.html#fenetrePrecedente-class_method" title="Fenetre.fenetrePrecedente (method)">fenetrePrecedente</a></span>, <span class='object_link'><a href="Fenetre.html#fenetrePrecedente=-class_method" title="Fenetre.fenetrePrecedente= (method)">fenetrePrecedente=</a></span>, <span class='object_link'><a href="Fenetre.html#fenetreStyle-class_method" title="Fenetre.fenetreStyle (method)">fenetreStyle</a></span>, <span class='object_link'><a href="Fenetre.html#viderFenetre-class_method" title="Fenetre.viderFenetre (method)">viderFenetre</a></span></p>
288
+ <div id="constructor_details" class="method_details_list">
289
+ <h2>Constructor Details</h2>
290
+
291
+ <div class="method_details first">
292
+ <h3 class="signature first" id="initialize-instance_method">
293
+
294
+ #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="FenetreRegles (class)">FenetreRegles</a></span></tt>
295
+
296
+
297
+
298
+
299
+
300
+ </h3><div class="docstring">
301
+ <div class="discussion">
302
+
303
+ <p>Initialize</p>
304
+
305
+
306
+ </div>
307
+ </div>
308
+ <div class="tags">
309
+
310
+
311
+ </div><table class="source_code">
312
+ <tr>
313
+ <td>
314
+ <pre class="lines">
315
+
316
+
317
+ 25
318
+ 26
319
+ 27
320
+ 28
321
+ 29
322
+ 30
323
+ 31
324
+ 32
325
+ 33
326
+ 34
327
+ 35
328
+ 36
329
+ 37
330
+ 38
331
+ 39
332
+ 40
333
+ 41
334
+ 42
335
+ 43
336
+ 44
337
+ 45
338
+ 46
339
+ 47
340
+ 48
341
+ 49</pre>
342
+ </td>
343
+ <td>
344
+ <pre class="code"><span class="info file"># File 'app/view/FenetreRegles.rb', line 25</span>
345
+
346
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
347
+ <span class='comment'># VI box
348
+ </span> <span class='ivar'>@boxTop</span> <span class='op'>=</span> <span class='const'>Gtk</span><span class='op'>::</span><span class='const'>Box</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='symbol'>:vertical</span><span class='comma'>,</span><span class='int'>0</span><span class='rparen'>)</span>
349
+ <span class='ivar'>@boxBottom</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_creerBoxBottom'><span class='object_link'><a href="Fenetre.html#creerBoxBottom-class_method" title="Fenetre.creerBoxBottom (method)">creerBoxBottom</a></span></span><span class='lparen'>(</span><span class='rparen'>)</span>
350
+ <span class='comment'># VI label
351
+ </span> <span class='ivar'>@titreLabel</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_creerLabelType'><span class='object_link'><a href="Fenetre.html#creerLabelType-class_method" title="Fenetre.creerLabelType (method)">creerLabelType</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>&lt;u&gt;Règles&lt;/u&gt;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fenetre.html#SIZE_TITRE-constant" title="Fenetre::SIZE_TITRE (constant)">SIZE_TITRE</a></span></span><span class='rparen'>)</span>
352
+ <span class='ivar'>@regle0Label</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_creerLabelType'><span class='object_link'><a href="Fenetre.html#creerLabelType-class_method" title="Fenetre.creerLabelType (method)">creerLabelType</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>*************************************************************</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fenetre.html#SIZE_TITRE_REGLE-constant" title="Fenetre::SIZE_TITRE_REGLE (constant)">SIZE_TITRE_REGLE</a></span></span><span class='rparen'>)</span>
353
+ <span class='ivar'>@regle1Label</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_creerLabelType'><span class='object_link'><a href="Fenetre.html#creerLabelType-class_method" title="Fenetre.creerLabelType (method)">creerLabelType</a></span></span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>*************************************************************</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fenetre.html#SIZE_TITRE_REGLE-constant" title="Fenetre::SIZE_TITRE_REGLE (constant)">SIZE_TITRE_REGLE</a></span></span><span class='rparen'>)</span>
354
+ <span class='comment'># VI règles
355
+ </span> <span class='ivar'>@tabRegle</span> <span class='op'>=</span> <span class='lbracket'>[</span>
356
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> - Un sudoku classique contient 9 lignes et 9 colonnes,</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
357
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>soit 81 cases au total.</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
358
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> - Le but du jeu est de remplir ces cases avec des chiffres</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
359
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>allant de 1 à 9 en veillant toujours à ce qu&#39;un même chiffre</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
360
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ne figure qu&#39;une seule fois par colonne, une seule fois par</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
361
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>ligne et une seule fois par carré de 9 cases (appelé région).</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
362
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> - Au début du jeu, une vingtaine de chiffres sont déjà placés</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
363
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>et il vous reste à trouver les autres. En effet, une grille</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
364
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>initiale de sudoku correctement constituée ne peut aboutir qu&#39;à</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
365
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>une et une seule solution. Pour trouver les chiffres manquants,</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
366
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>tout est une question de logique et d&#39;observation.</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
367
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> - Suivez le tutoriel pour vous faciliter la tache et</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span>
368
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>apprendre certaines techniques...</span><span class='tstring_end'>&quot;</span></span>
369
+ <span class='rbracket'>]</span>
370
+ <span class='kw'>end</span></pre>
371
+ </td>
372
+ </tr>
373
+ </table>
374
+ </div>
375
+
376
+ </div>
377
+
378
+
379
+ <div id="instance_method_details" class="method_details_list">
380
+ <h2>Instance Method Details</h2>
381
+
382
+
383
+ <div class="method_details first">
384
+ <h3 class="signature first" id="ajoutCss-instance_method">
385
+
386
+ #<strong>ajoutCss</strong> &#x21d2; <tt>Object</tt>
387
+
388
+
389
+
390
+
391
+
392
+ </h3><div class="docstring">
393
+ <div class="discussion">
394
+
395
+ <p>Ajoute les classes css au widget</p>
396
+
397
+
398
+ </div>
399
+ </div>
400
+ <div class="tags">
401
+
402
+
403
+ </div><table class="source_code">
404
+ <tr>
405
+ <td>
406
+ <pre class="lines">
407
+
408
+
409
+ 90
410
+ 91
411
+ 92
412
+ 93
413
+ 94
414
+ 95
415
+ 96
416
+ 97
417
+ 98
418
+ 99
419
+ 100</pre>
420
+ </td>
421
+ <td>
422
+ <pre class="code"><span class="info file"># File 'app/view/FenetreRegles.rb', line 90</span>
423
+
424
+ <span class='kw'>def</span> <span class='id identifier rubyid_ajoutCss'>ajoutCss</span><span class='lparen'>(</span><span class='rparen'>)</span>
425
+ <span class='comment'>#css label
426
+ </span> <span class='ivar'>@titreLabel</span><span class='period'>.</span><span class='id identifier rubyid_override_color'>override_color</span><span class='lparen'>(</span><span class='symbol'>:normal</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fenetre.html#COULEUR_BLANC-constant" title="Fenetre::COULEUR_BLANC (constant)">COULEUR_BLANC</a></span></span><span class='rparen'>)</span>
427
+ <span class='ivar'>@titreLabel</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_top'>set_margin_top</span><span class='lparen'>(</span><span class='int'>30</span><span class='rparen'>)</span>
428
+ <span class='ivar'>@regle0Label</span><span class='period'>.</span><span class='id identifier rubyid_override_color'>override_color</span><span class='lparen'>(</span><span class='symbol'>:normal</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fenetre.html#COULEUR_ORANGE-constant" title="Fenetre::COULEUR_ORANGE (constant)">COULEUR_ORANGE</a></span></span><span class='rparen'>)</span>
429
+ <span class='ivar'>@regle1Label</span><span class='period'>.</span><span class='id identifier rubyid_override_color'>override_color</span><span class='lparen'>(</span><span class='symbol'>:normal</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fenetre.html#COULEUR_ORANGE-constant" title="Fenetre::COULEUR_ORANGE (constant)">COULEUR_ORANGE</a></span></span><span class='rparen'>)</span>
430
+ <span class='ivar'>@regle0Label</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_top'>set_margin_top</span><span class='lparen'>(</span><span class='int'>10</span><span class='rparen'>)</span>
431
+ <span class='ivar'>@regle0Label</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_bottom'>set_margin_bottom</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span>
432
+ <span class='ivar'>@regle1Label</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_top'>set_margin_top</span><span class='lparen'>(</span><span class='int'>10</span><span class='rparen'>)</span>
433
+ <span class='ivar'>@regle1Label</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_bottom'>set_margin_bottom</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span>
434
+ <span class='kw'>end</span></pre>
435
+ </td>
436
+ </tr>
437
+ </table>
438
+ </div>
439
+
440
+ <div class="method_details ">
441
+ <h3 class="signature " id="creerBoxTop-instance_method">
442
+
443
+ #<strong>creerBoxTop</strong> &#x21d2; <tt>Object</tt>
444
+
445
+
446
+
447
+
448
+
449
+ </h3><div class="docstring">
450
+ <div class="discussion">
451
+
452
+ <p>Créer la box verticale contenant le texte explicatif et le titre</p>
453
+
454
+
455
+ </div>
456
+ </div>
457
+ <div class="tags">
458
+
459
+
460
+ </div><table class="source_code">
461
+ <tr>
462
+ <td>
463
+ <pre class="lines">
464
+
465
+
466
+ 66
467
+ 67
468
+ 68
469
+ 69
470
+ 70
471
+ 71
472
+ 72
473
+ 73
474
+ 74
475
+ 75
476
+ 76
477
+ 77
478
+ 78
479
+ 79
480
+ 80
481
+ 81
482
+ 82
483
+ 83
484
+ 84
485
+ 85</pre>
486
+ </td>
487
+ <td>
488
+ <pre class="code"><span class="info file"># File 'app/view/FenetreRegles.rb', line 66</span>
489
+
490
+ <span class='kw'>def</span> <span class='id identifier rubyid_creerBoxTop'>creerBoxTop</span><span class='lparen'>(</span><span class='rparen'>)</span>
491
+ <span class='comment'>#regles enoncées
492
+ </span> <span class='id identifier rubyid_table'>table</span><span class='op'>=</span><span class='const'>Gtk</span><span class='op'>::</span><span class='const'>Table</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='int'>1</span><span class='comma'>,</span><span class='int'>15</span><span class='comma'>,</span><span class='kw'>false</span><span class='rparen'>)</span>
493
+ <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_attach'>attach</span><span class='lparen'>(</span><span class='ivar'>@regle0Label</span><span class='comma'>,</span><span class='int'>0</span><span class='comma'>,</span><span class='int'>1</span><span class='comma'>,</span><span class='int'>0</span><span class='comma'>,</span><span class='int'>1</span><span class='rparen'>)</span>
494
+ <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_attach'>attach</span><span class='lparen'>(</span><span class='ivar'>@regle1Label</span><span class='comma'>,</span><span class='int'>0</span><span class='comma'>,</span><span class='int'>1</span><span class='comma'>,</span><span class='int'>14</span><span class='comma'>,</span><span class='int'>15</span><span class='rparen'>)</span>
495
+
496
+ <span class='ivar'>@tabRegle</span><span class='period'>.</span><span class='id identifier rubyid_each_with_index'>each_with_index</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_tab'>tab</span><span class='comma'>,</span><span class='id identifier rubyid_index'>index</span><span class='op'>|</span>
497
+ <span class='id identifier rubyid_id'>id</span><span class='op'>=</span><span class='id identifier rubyid_index'>index</span><span class='op'>+</span><span class='int'>1</span>
498
+ <span class='id identifier rubyid_regleLabel'>regleLabel</span><span class='op'>=</span><span class='const'>Fenetre</span><span class='op'>::</span><span class='id identifier rubyid_creerLabelType'>creerLabelType</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_tab'>tab</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fenetre.html#SIZE_CONTENU_REGLE-constant" title="Fenetre::SIZE_CONTENU_REGLE (constant)">SIZE_CONTENU_REGLE</a></span></span><span class='rparen'>)</span>
499
+ <span class='id identifier rubyid_regleLabel'>regleLabel</span><span class='period'>.</span><span class='id identifier rubyid_override_color'>override_color</span><span class='lparen'>(</span><span class='symbol'>:normal</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Fenetre.html#COULEUR_BLANC-constant" title="Fenetre::COULEUR_BLANC (constant)">COULEUR_BLANC</a></span></span><span class='rparen'>)</span>
500
+ <span class='id identifier rubyid_regleLabel'>regleLabel</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_top'>set_margin_top</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span>
501
+ <span class='id identifier rubyid_regleLabel'>regleLabel</span><span class='period'>.</span><span class='id identifier rubyid_set_margin_left'>set_margin_left</span><span class='lparen'>(</span><span class='int'>10</span><span class='rparen'>)</span>
502
+ <span class='id identifier rubyid_regleLabel'>regleLabel</span><span class='period'>.</span><span class='id identifier rubyid_halign'>halign</span> <span class='op'>=</span> <span class='symbol'>:start</span>
503
+ <span class='id identifier rubyid_table'>table</span><span class='period'>.</span><span class='id identifier rubyid_attach'>attach</span><span class='lparen'>(</span><span class='id identifier rubyid_regleLabel'>regleLabel</span><span class='comma'>,</span><span class='int'>0</span><span class='comma'>,</span><span class='int'>1</span><span class='comma'>,</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span><span class='id identifier rubyid_id'>id</span><span class='op'>+</span><span class='int'>1</span><span class='rparen'>)</span>
504
+ <span class='rbrace'>}</span>
505
+
506
+ <span class='comment'>#add des boutons à la box
507
+ </span> <span class='ivar'>@boxTop</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@titreLabel</span><span class='rparen'>)</span>
508
+ <span class='ivar'>@boxTop</span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_table'>table</span><span class='rparen'>)</span>
509
+ <span class='kw'>end</span></pre>
510
+ </td>
511
+ </tr>
512
+ </table>
513
+ </div>
514
+
515
+ <div class="method_details ">
516
+ <h3 class="signature " id="miseEnPlace-instance_method">
517
+
518
+ #<strong>miseEnPlace</strong> &#x21d2; <tt>Object</tt>
519
+
520
+
521
+
522
+
523
+
524
+ </h3><div class="docstring">
525
+ <div class="discussion">
526
+
527
+ <p>Permet de créer et d&#39;ajouter les box au conteneur principal</p>
528
+
529
+
530
+ </div>
531
+ </div>
532
+ <div class="tags">
533
+
534
+
535
+ </div><table class="source_code">
536
+ <tr>
537
+ <td>
538
+ <pre class="lines">
539
+
540
+
541
+ 55
542
+ 56
543
+ 57
544
+ 58
545
+ 59
546
+ 60</pre>
547
+ </td>
548
+ <td>
549
+ <pre class="code"><span class="info file"># File 'app/view/FenetreRegles.rb', line 55</span>
550
+
551
+ <span class='kw'>def</span> <span class='id identifier rubyid_miseEnPlace'>miseEnPlace</span><span class='lparen'>(</span><span class='rparen'>)</span>
552
+ <span class='id identifier rubyid_creerBoxTop'>creerBoxTop</span><span class='lparen'>(</span><span class='rparen'>)</span>
553
+ <span class='id identifier rubyid_ajoutCss'>ajoutCss</span><span class='lparen'>(</span><span class='rparen'>)</span>
554
+ <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_box'><span class='object_link'><a href="Fenetre.html#box-class_method" title="Fenetre.box (method)">box</a></span></span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@boxTop</span><span class='rparen'>)</span>
555
+ <span class='const'><span class='object_link'><a href="Fenetre.html" title="Fenetre (module)">Fenetre</a></span></span><span class='op'>::</span><span class='id identifier rubyid_box'><span class='object_link'><a href="Fenetre.html#box-class_method" title="Fenetre.box (method)">box</a></span></span><span class='period'>.</span><span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='ivar'>@boxBottom</span><span class='rparen'>)</span>
556
+ <span class='kw'>end</span></pre>
557
+ </td>
558
+ </tr>
559
+ </table>
560
+ </div>
561
+
562
+ <div class="method_details ">
563
+ <h3 class="signature " id="run-instance_method">
564
+
565
+ #<strong>run</strong> &#x21d2; <tt>Object</tt>
566
+
567
+
568
+
569
+
570
+
571
+ </h3><div class="docstring">
572
+ <div class="discussion">
573
+
574
+ <p>Lance la construction du modèle de la vue. Méthode à définir dans tout les
575
+ cas ! Autrement pas de rendu de la page.</p>
576
+
577
+
578
+ </div>
579
+ </div>
580
+ <div class="tags">
581
+
582
+ <p class="tag_title">Returns:</p>
583
+ <ul class="return">
584
+
585
+ <li>
586
+
587
+
588
+ <span class='type'></span>
589
+
590
+
591
+
592
+
593
+ <div class='inline'>
594
+ <p>self</p>
595
+ </div>
596
+
597
+ </li>
598
+
599
+ </ul>
600
+
601
+ </div><table class="source_code">
602
+ <tr>
603
+ <td>
604
+ <pre class="lines">
605
+
606
+
607
+ 107
608
+ 108
609
+ 109
610
+ 110</pre>
611
+ </td>
612
+ <td>
613
+ <pre class="code"><span class="info file"># File 'app/view/FenetreRegles.rb', line 107</span>
614
+
615
+ <span class='kw'>def</span> <span class='id identifier rubyid_run'>run</span><span class='lparen'>(</span><span class='rparen'>)</span>
616
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_miseEnPlace'>miseEnPlace</span><span class='lparen'>(</span><span class='rparen'>)</span>
617
+ <span class='kw'>return</span> <span class='kw'>self</span>
618
+ <span class='kw'>end</span></pre>
619
+ </td>
620
+ </tr>
621
+ </table>
622
+ </div>
623
+
624
+ </div>
625
+
626
+ </div>
627
+
628
+ <div id="footer">
629
+ Generated on Sat Apr 22 22:47:31 2017 by
630
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
631
+ 0.9.8 (ruby-2.3.3).
632
+ </div>
633
+
634
+ </div>
635
+ </body>
636
+ </html>