http://www.coding4you.at/inf_tag/

Informatik Tag 28.9.2017

Einführung in Python mit Conway's Game of Life

baumann (at) ocg.at

Game of Life (Wikipedia)

Youtube

intro: https://www.youtube.com/watch?v=CgOcEZinQ2I
epic: https://www.youtube.com/watch?v=C2vgICfQawE
clock: https://www.youtube.com/watch?v=3NDAZ5g4EuU&t=9s
life: https://www.youtube.com/watch?v=xP5-iIeKXE8
conway: https://www.youtube.com/watch?v=E8kUJL04ELA
conway: https://www.youtube.com/watch?v=R9Plq-D1gEk
math battle: https://www.youtube.com/watch?v=-FaqC4h5Ftg
acorn: https://www.youtube.com/watch?v=Aq51GfPmD54

Python

www.python.org
language reference

interaktive Shell (Pfeiltasten):
   für Ausdrücke aber auch kleine Programme
Idle

Warum 2 und 3?
Case sensitive: gilt für die reservierten Wörter und Variablen
Kein ";" am Ende der Zeile
Die Einrückungen sind Teil der Sprache und obligatorisch
Bilden von Blöcken über indents und nicht mit "{}", "begin end"
Variablen müssen nicht deklariert werden (aber stark typisiert: Umwandlungsfunktionen)

cheatsheet_python.pdf
beginners_python_cheat_sheet.pdf

python snippets view

life_01.py
life_02.py
life_03.py
life_04.py
life_05.py
life_06.py
life_07.py
life_08.py
life_09.py
life_10.py

2_gliders.gol

life_all.zip

Original

recipe-578928.zip

Diffs

life_01.py Δ life_02.py
life_02.py Δ life_03.py
life_03.py Δ life_04.py
life_04.py Δ life_05.py
life_05.py Δ life_06.py
life_06.py Δ life_07.py
life_07.py Δ life_08.py
life_08.py Δ life_09.py
life_09.py Δ life_10.py

Weitere Ausbaumöglichkeiten des Projekts:
alternative Regeln, Floodfill-Algorithmus, Simulationen, Wellen, Fließkommawerte für Zellen, ...