Feat: Début de la présentation

This commit is contained in:
Bertrand Benjamin 2021-06-11 15:38:08 +02:00
parent 0000d10235
commit 55921454d3
6 changed files with 372 additions and 0 deletions

View File

@ -33,6 +33,8 @@ pytest --doctest-modules ...
Les consignes et le squelette du programme se trouve dans le dossier ```blackjack```.
Pour allez plus loin, on pourra pousser les élèves à faire une sous classe de Player pour coder la stratégie d'une joueur.
### Maze
Les consignes et le squelette du programme se trouve dans le dossier ```maze```.
@ -51,3 +53,6 @@ A la suite de ce temps de prise en main, les élèves réalise les deux étapes
# Pré-requis
- Avoir au préalable travaillé sur les classes et avec tkinter pour le projet Maze.
- Avoir installé ```pytest``` et ```NSI_Bertrand``` sur les postes informatiques.

BIN
Support/file.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

305
Support/file_pile.svg Normal file
View File

@ -0,0 +1,305 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="210mm"
height="297mm"
viewBox="0 0 210 297"
version="1.1"
id="svg5"
inkscape:version="1.1 (c4e8f9ed74, 2021-05-24)"
sodipodi:docname="file_pile.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="1.1064394"
inkscape:cx="311.81102"
inkscape:cy="-187.99041"
inkscape:window-width="956"
inkscape:window-height="1076"
inkscape:window-x="1080"
inkscape:window-y="376"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2">
<marker
style="overflow:visible;"
id="Arrow1Mend"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true">
<path
transform="scale(0.4) rotate(180) translate(10,0)"
style="fill-rule:evenodd;fill:context-stroke;stroke:context-stroke;stroke-width:1.0pt;"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path1559" />
</marker>
<marker
style="overflow:visible;"
id="Arrow1Lend"
refX="0.0"
refY="0.0"
orient="auto"
inkscape:stockid="Arrow1Lend"
inkscape:isstock="true">
<path
transform="scale(0.8) rotate(180) translate(12.5,0)"
style="fill-rule:evenodd;fill:context-stroke;stroke:context-stroke;stroke-width:1.0pt;"
d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
id="path1553" />
</marker>
<marker
style="overflow:visible"
id="Arrow1Mend-7"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true">
<path
transform="matrix(-0.4,0,0,-0.4,-4,0)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
id="path1559-5" />
</marker>
<marker
style="overflow:visible"
id="Arrow1Mend-0"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="Arrow1Mend"
inkscape:isstock="true">
<path
transform="matrix(-0.4,0,0,-0.4,-4,0)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
id="path1559-9" />
</marker>
</defs>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="g13930"
inkscape:export-filename="/home/lafrite/Cours/2020-2021/Formations/DUI/TP - Structure de données linéaire - La pile/Support/pile.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<rect
style="fill:#000000;fill-opacity:0.234171;stroke:#000000;stroke-width:0.264999"
id="rect217"
width="17.307051"
height="1.3797945"
x="29.880445"
y="28.477165"
inkscape:tile-cx="38.53397"
inkscape:tile-cy="29.167062"
inkscape:tile-w="17.572049"
inkscape:tile-h="1.6447934"
inkscape:tile-x0="29.747945"
inkscape:tile-y0="28.344665" />
<rect
style="fill:#000000;fill-opacity:0.234171;stroke:#000000;stroke-width:0.264999"
id="rect217-3"
width="17.307051"
height="1.3797945"
x="15.259519"
y="17.304668" />
<rect
style="fill:#000000;fill-opacity:0.234171;stroke:#000000;stroke-width:0.264999"
id="rect217-6"
width="17.307051"
height="1.3797945"
x="45.210606"
y="17.424232" />
<use
x="0"
y="0"
inkscape:tiled-clone-of="#rect217"
xlink:href="#rect217"
id="use459" />
<use
x="0"
y="0"
inkscape:tiled-clone-of="#rect217"
xlink:href="#rect217"
transform="translate(0,1.6447934)"
id="use461" />
<use
x="0"
y="0"
inkscape:tiled-clone-of="#rect217"
xlink:href="#rect217"
transform="translate(0,3.2895869)"
id="use463" />
<use
x="0"
y="0"
inkscape:tiled-clone-of="#rect217"
xlink:href="#rect217"
transform="translate(0,4.9343803)"
id="use465" />
<use
x="0"
y="0"
inkscape:tiled-clone-of="#rect217"
xlink:href="#rect217"
transform="translate(0,6.5791738)"
id="use467" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Mend)"
d="m 24.151772,19.422936 c 5.748327,0.328988 9.708311,1.87773 11.110116,7.719226"
id="path520"
sodipodi:nodetypes="cc" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Mend-7)"
d="m 41.443835,27.76593 c 4.887274,-1.153742 8.262932,-3.794984 8.145418,-8.156999"
id="path520-3"
sodipodi:nodetypes="cc" />
<text
xml:space="preserve"
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle;stroke-width:0.264583"
x="19.569712"
y="24.774746"
id="text4135"><tspan
sodipodi:role="line"
id="tspan4133"
style="stroke-width:0.264583"
x="19.569712"
y="24.774746">Dernier arrivé</tspan></text>
<text
xml:space="preserve"
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle;stroke-width:0.264583"
x="61.998615"
y="24.362196"
id="text5965"><tspan
sodipodi:role="line"
id="tspan5963"
style="stroke-width:0.264583"
x="61.998615"
y="24.362196">Premier parti</tspan></text>
</g>
<g
id="g13946"
inkscape:export-filename="/home/lafrite/Cours/2020-2021/Formations/DUI/TP - Structure de données linéaire - La pile/Support/file.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
transform="matrix(1.0000007,0,0,0.99967255,-7.4154432e-5,0.01348151)">
<rect
style="fill:#000000;fill-opacity:0.234171;stroke:#000000;stroke-width:0.264999"
id="rect217-6-2"
width="17.307051"
height="1.3797945"
x="19.085604"
y="-105.5486"
transform="rotate(90)" />
<rect
style="fill:#000000;fill-opacity:0.234171;stroke:#000000;stroke-width:0.264999"
id="rect217-6-7"
width="17.307051"
height="1.3797945"
x="19.085604"
y="-152.41817"
transform="rotate(90)" />
<g
id="g8242"
transform="rotate(90,111.74167,47.918153)">
<rect
style="fill:#000000;fill-opacity:0.234171;stroke:#000000;stroke-width:0.264999"
id="rect217-5"
width="17.307051"
height="1.3797945"
x="82.909119"
y="27.38685"
inkscape:tile-cx="38.53397"
inkscape:tile-cy="29.167062"
inkscape:tile-w="17.572049"
inkscape:tile-h="1.6447934"
inkscape:tile-x0="29.747945"
inkscape:tile-y0="28.344665" />
<use
x="0"
y="0"
inkscape:tiled-clone-of="#rect217-5"
xlink:href="#rect217-5"
transform="translate(0,1.6447934)"
id="use461-6"
width="100%"
height="100%" />
<use
x="0"
y="0"
inkscape:tiled-clone-of="#rect217-5"
xlink:href="#rect217-5"
transform="translate(0,3.2895869)"
id="use463-2"
width="100%"
height="100%" />
<use
x="0"
y="0"
inkscape:tiled-clone-of="#rect217-5"
xlink:href="#rect217-5"
transform="translate(0,4.9343803)"
id="use465-9"
width="100%"
height="100%" />
<use
x="0"
y="0"
inkscape:tiled-clone-of="#rect217-5"
xlink:href="#rect217-5"
transform="translate(0,6.5791738)"
id="use467-1"
width="100%"
height="100%" />
</g>
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Mend)"
d="M 107.92199,27.73913 H 121.4192"
id="path8452" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow1Mend-0)"
d="m 134.64636,27.73913 h 13.49721"
id="path8452-3" />
<text
xml:space="preserve"
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle;stroke-width:0.264583"
x="114.85207"
y="40.849854"
id="text10354"><tspan
sodipodi:role="line"
id="tspan10352"
style="stroke-width:0.264583"
x="114.85207"
y="40.849854">Dernier arrivé</tspan></text>
<text
xml:space="preserve"
style="font-size:3.52777px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle;stroke-width:0.264583"
x="141.64792"
y="40.437305"
id="text12778"><tspan
sodipodi:role="line"
id="tspan12776"
style="stroke-width:0.264583"
x="141.64792"
y="40.437305">Dernier parti</tspan></text>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 10 KiB

BIN
Support/pile.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
Support/support.pdf Normal file

Binary file not shown.

62
Support/support.tex Normal file
View File

@ -0,0 +1,62 @@
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\columnseprule 0.4pt\raggedcolumns
\usetheme{Warsaw}
\title{Pile et File}
\author{Cédric et Benjamin}
\date{}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}[fragile]{Pile et File}
\begin{multicols*}{2}
\textbf{Pile}
\medskip
\includegraphics[scale=0.8]{./pile}
\columnbreak
\textbf{File}
\medskip
\includegraphics[scale=0.8]{./file}
\end{multicols*}
\textbf{Enveloppe pour les éléments stockés (Node)}
à compléter avec un schéma
\textbf{Implémentation commune pour Pile et File}
\textbf{Attributs} \verb|current|; \verb|n|
\textbf{Méthodes:} \verb|append|, \verb|pop|, \verb|get_current|, \verb|is_empty|, \verb|empty|
\end{frame}
\begin{frame}{Consignes}
\textbf{Étapes}
\begin{itemize}
\item Compléter les classes \texttt{Pile} et \texttt{File}
\item Choisir un des deux projets
\item Copier les fichiers \texttt{pile.py} et \texttt{file.py} complété dans le projet choisi.
\item Réalisé le projet choisi.
\end{itemize}
\textbf{Déroulement des séances}
\begin{itemize}
\item 15 minutes sans toucher le clavier.
\item Toutes les 10minutes, la personne qui a le clavier change.
\end{itemize}
\end{frame}
\end{document}