From 07c3d56b24c9693ec060399823dd233184c054a3 Mon Sep 17 00:00:00 2001 From: Benoît LUBRANO DI SBARAGLIONE Date: Wed, 12 Mar 2014 10:51:36 +0100 Subject: Update zuul with history report. --- report/progression.tex | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'report') 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). \subsection{back} +The back command was implemented as part of commit f218bf5fa. + \subsection{back test} +The back command works even with any parameter. We will check this later with +"zuul-with-enums". + \subsection{back back} +When the user enters back twice, he goes two rooms backward. This is working +correctly. + \subsection{Stack} +The Stack class represents a last-in-first-out (LIFO) stack of objects. The push() +method allows to add and element at the top of the stack and the pop() method +allows to retrieve the top item and removes it. + +A condition checks whether the Stack is empty before calling the pop() method, +so that the program does not throw an Exception. This resolve the case when the +player is at the starting point. \section{Zuul with tests} -- cgit v1.2.3