Learning Programming with Fundamentals of Computing

A snippet of Python code that prints a welcome message.

Introduction to Interactive Programming in Python - Week 2

The second week of the course introduces the basic constructs of Python programming, including functions, logic and comparisons, and conditionals. We also build our first program this week: Rock, Paper, Scissors, Lizard, Spock!

Relationships between rock, paper, scissors, lizard, and Spock
In this variant of Rock, Paper, Scissors, popularized by the The Big Bang Theory, each weapon defeats the weapons it points to, and is defeated by weapons pointing to it.

Mini Project 2

This week's mini project is to create the game Rock, Paper, Scissors, Lizard, Spock that we can play against the computer. To do so, we need to write three functions: name_to_number, number_to_name, and rpsls.

See my complete implementation of Mini Project 2 on GitHub.