|
@@ -18,15 +18,6 @@ |
|
|
\frame{\titlepage} |
|
|
\frame{\titlepage} |
|
|
|
|
|
|
|
|
\begin{frame} |
|
|
\begin{frame} |
|
|
|
|
|
|
|
|
Note: \\~\\ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\end{frame} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\begin{frame} |
|
|
|
|
|
|
|
|
|
|
|
\frametitle{Plan} |
|
|
\frametitle{Plan} |
|
|
|
|
|
|
|
|
\begin{itemize} |
|
|
\begin{itemize} |
|
@@ -593,7 +584,7 @@ Prenons le temps de la réflexion! |
|
|
\begin{itemize} |
|
|
\begin{itemize} |
|
|
\item \texttt{read\_words()} |
|
|
\item \texttt{read\_words()} |
|
|
\item \texttt{choose\_word()} |
|
|
\item \texttt{choose\_word()} |
|
|
\item \texttt{display\_indice()} |
|
|
|
|
|
|
|
|
\item \texttt{display\_hint()} |
|
|
\item \texttt{has\_won()} |
|
|
\item \texttt{has\_won()} |
|
|
\end{itemize} |
|
|
\end{itemize} |
|
|
|
|
|
|
|
@@ -644,7 +635,7 @@ def read_words(): |
|
|
file = open("pendu.txt") |
|
|
file = open("pendu.txt") |
|
|
contents = file.read() |
|
|
contents = file.read() |
|
|
file.close() |
|
|
file.close() |
|
|
words = splitlines() |
|
|
|
|
|
|
|
|
words = contents.splitlines() |
|
|
return words |
|
|
return words |
|
|
\end{lstlisting} |
|
|
\end{lstlisting} |
|
|
|
|
|
|
|
|