aboutsummaryrefslogtreecommitdiff
path: root/Info
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-04-21 21:49:32 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2024-04-21 21:49:32 +0200
commitf89902603a4cfd82a646a0f2dd8359cdeb38b858 (patch)
tree568f60b153b9a6437ddc14846b2eb422f683313d /Info
parenta42fff672ac9e6f4154d0dd3c1f52b01dc189da4 (diff)
downloadunterricht-f89902603a4cfd82a646a0f2dd8359cdeb38b858.tar.gz
unterricht-f89902603a4cfd82a646a0f2dd8359cdeb38b858.zip
add intermediate snake 3 material
Diffstat (limited to 'Info')
-rw-r--r--Info/10/2/Snake/arbeitsauftrag3.tex38
-rw-r--r--Info/10/2/Snake/img/snake_crash.pngbin0 -> 3162696 bytes
-rw-r--r--Info/10/2/Snake/img/snake_eating.pngbin0 -> 3162696 bytes
-rw-r--r--Info/10/2/Snake/img/snake_eating_itself.pngbin0 -> 3162696 bytes
-rw-r--r--Info/10/2/Snake/slides.md45
5 files changed, 83 insertions, 0 deletions
diff --git a/Info/10/2/Snake/arbeitsauftrag3.tex b/Info/10/2/Snake/arbeitsauftrag3.tex
new file mode 100644
index 00000000..26a2a2ea
--- /dev/null
+++ b/Info/10/2/Snake/arbeitsauftrag3.tex
@@ -0,0 +1,38 @@
+\documentclass{handout}
+\csname endofdump\endcsname
+\usepackage{minted}
+\usepackage[ngerman]{babel}
+\geometry{margin=2cm}
+
+\title{Snake Arbeitsauftrag 3}
+\setcounter{section}{3}
+
+\begin{document}
+\thispagestyle{empty}
+
+\subsection{\faIcon{desktop} Kollisionserkennung}
+\begin{itemize}
+\item
+\end{itemize}
+
+\subsubsection{\faIcon{desktop} Kollision mit dem Essen}
+
+\begin{itemize}
+\item
+\end{itemize}
+
+\subsubsection{\faIcon{desktop} Kollision mit dem Rand}
+
+\begin{itemize}
+\item
+\end{itemize}
+
+\subsubsection{\faIcon{desktop} Kollision mit sich selbst}
+
+\begin{itemize}
+\item
+\end{itemize}
+
+\subsection{\faIcon{desktop} Bewegung der Schlange}
+\end{document}
+
diff --git a/Info/10/2/Snake/img/snake_crash.png b/Info/10/2/Snake/img/snake_crash.png
new file mode 100644
index 00000000..a683718f
--- /dev/null
+++ b/Info/10/2/Snake/img/snake_crash.png
Binary files differ
diff --git a/Info/10/2/Snake/img/snake_eating.png b/Info/10/2/Snake/img/snake_eating.png
new file mode 100644
index 00000000..560b7b1c
--- /dev/null
+++ b/Info/10/2/Snake/img/snake_eating.png
Binary files differ
diff --git a/Info/10/2/Snake/img/snake_eating_itself.png b/Info/10/2/Snake/img/snake_eating_itself.png
new file mode 100644
index 00000000..0306342b
--- /dev/null
+++ b/Info/10/2/Snake/img/snake_eating_itself.png
Binary files differ
diff --git a/Info/10/2/Snake/slides.md b/Info/10/2/Snake/slides.md
index cba78896..5aa5914e 100644
--- a/Info/10/2/Snake/slides.md
+++ b/Info/10/2/Snake/slides.md
@@ -262,11 +262,16 @@ Ein Interface gibt zu implementierende Methoden vor.
::: {.columns}
:::: {.column width=50%}
+\begin{center}
\begin{tikzpicture}
\begin{class}[text width=4cm]{Essen}{0,-4.5}
\attribute{Position}
\end{class}
\end{tikzpicture}
+\end{center}
+
+\vspace{1cm}
+Das Essen soll in festen Zeitintervallen an einer zufälligen Position entstehen.
::::
:::: {.column width=50%}
@@ -365,6 +370,46 @@ void bewegen() {
# Phase III - Kollisionserkennung
+## Wann frisst die Schlange das Essen
+
+::: {.columns align=center}
+:::: {.column width=50%}
+\vspace{0.3cm}
+![](img/snake_eating.png)
+::::
+
+:::: {.column width=50%}
+Berührt der Kopf das Essen?
+::::
+:::
+
+## Kollision mit dem Rand der Welt
+
+::: {.columns align=center}
+:::: {.column width=50%}
+\vspace{0.3cm}
+![](img/snake_crash.png)
+::::
+
+:::: {.column width=50%}
+Ist die Position des Kopfes noch Teil der Welt?
+::::
+:::
+
+
+## Kollision mit sich selbst
+::: {.columns align=center}
+:::: {.column width=50%}
+\vspace{0.3cm}
+![](img/snake_eating_itself.png)
+::::
+
+:::: {.column width=50%}
+Berührt der Kopf der Schlange eins der eigenen Körperteile?
+::::
+:::
+
+
<!-- ## Klassendiagramm mit pgf-umlcd -->
<!-- \begin{tikzpicture} -->