aboutsummaryrefslogtreecommitdiff
path: root/report/progression.tex
diff options
context:
space:
mode:
Diffstat (limited to 'report/progression.tex')
-rw-r--r--report/progression.tex15
1 files changed, 15 insertions, 0 deletions
diff --git a/report/progression.tex b/report/progression.tex
index 6600430..cf4f3d2 100644
--- a/report/progression.tex
+++ b/report/progression.tex
@@ -204,12 +204,27 @@ to perform actions on a particular one (take, drop, use, etc\ldots).
204 204
205\subsection{back} 205\subsection{back}
206 206
207The back command was implemented as part of commit f218bf5fa.
208
207\subsection{back test} 209\subsection{back test}
208 210
211The back command works even with any parameter. We will check this later with
212"zuul-with-enums".
213
209\subsection{back back} 214\subsection{back back}
210 215
216When the user enters back twice, he goes two rooms backward. This is working
217correctly.
218
211\subsection{Stack} 219\subsection{Stack}
212 220
221The Stack class represents a last-in-first-out (LIFO) stack of objects. The push()
222method allows to add and element at the top of the stack and the pop() method
223allows to retrieve the top item and removes it.
224
225A condition checks whether the Stack is empty before calling the pop() method,
226so that the program does not throw an Exception. This resolve the case when the
227player is at the starting point.
213 228
214\section{Zuul with tests} 229\section{Zuul with tests}
215 230