File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ py -m http.server 8000 --bind 127.0.0.1
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="utf-8 " />
5
+ < title > calcul mental</ title >
6
+ < link rel ="stylesheet " href ="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug@b3f8fb8eafcc4dac5a72d87018c743db42437226/lib.css ">
7
+ </ head >
8
+
9
+ < body >
10
+ < header >
11
+ </ header >
12
+ < h1 > Es-tu plus rapide que moi en calcul mental ?</ h1 >
13
+ < div id ="gameZone "> </ div >
14
+
15
+ < script src ="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/libStd.fg " type ="application/funcsug "> </ script >
16
+ < script src ="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/libDOM.fg " type ="application/funcsug "> </ script >
17
+ < script src ="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/libDOMSVG.fg " type ="application/funcsug "> </ script >
18
+ < script src ="miniQuizz.fg " type ="application/funcsug "> </ script >
19
+ < script src ="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/parser.js "> </ script >
20
+ < script src ="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/parserPy.js "> </ script >
21
+ < script src ="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/interpreter.js "> </ script >
22
+ < script src ="https://cdn.jsdelivr.net/gh/cl4cnam/funcSug/DOMloader.js "> </ script >
23
+ </ body >
24
+ </ html >
Original file line number Diff line number Diff line change
1
+ displayNewMessageIn("Combien font 2 X 5 ?", "#gameZone")
2
+ parallel exitAfter 1 finished ||
3
+ var resultat := awaitNewHumanNumberIn("#gameZone")
4
+ if resultat = 10 :
5
+ displayNewMessageIn('Wow ! Quelle rapidité ! Tu as tout-à-fait raison !',"#gameZone")
6
+ #le else n'existe pas encore!!! pff :p
7
+ if resultat != 10 :
8
+ displayNewMessageIn('Wow ! Quelle rapidité ! Mais la réponse est 10 ;)',"#gameZone")
9
+ ||
10
+ waitSeconds(5)
11
+ displayNewMessageIn("Moi ! Moi ! Moi ! 10 !","#gameZone")
12
+
You can’t perform that action at this time.
0 commit comments