~/talk

Simple Games for Python Beginners

Talkat PyOhio 2015 · 2015-08-01..08-02· [python, creative-coding]
links:none on file
slides:none on file

Creates a number-guessing game and a simple card War simulation using Python 3 and IDLE, showing step‑by‑step code: variables, if/elif/else, while loops, for loops, lists, slicing, pop/append, and basic logging. Uses the standard library for randomness (random.randint(1,100) and from random import shuffle), validates input with try/except ValueError and continue/break, enforces a max‑guesses limit (configurable), deals/shuffles a 52‑card deck, and demonstrates the code runs with expected results (e.g., 26/26 split).

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:27Number guessing game basics
  3. 7:05User input and conditions
  4. 14:31Handling input and loops
  5. 26:43Improving game logic
  6. 37:14Exception handling and clues
  7. 53:38Adding randomness
  8. 1:06:53Card game setup
  9. 1:22:12Dealing and comparing
  10. 1:31:57Game logic and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.