7_3_5

WHAT: Design and write programs that accomplish specific goals

HOW:

Activity 1

Writing your own programs is really fun but it takes some resilience! Make sure that you have completed the computational thinking outcomes in 7_2 (1-8) before working on this activity. Don't get put off if you find this tricky. All programmers go through this and it is completely normal!!!

Activity 2

Remember the Computational Thinking Problem solver sheets from 7_2? Well you will be needing them for this outcome as well. Download and print a few copies or use the headings as a guide whilst working on scrap paper.

Computational Thinking Problem Solver Sheet.pdf

Activity 3

The video below shows you how I got started with this problem. Watch it through to see my process and to give you a bit of a starting point.

The sheet that I produced can be downloaded here.

The code I made is below the video.

Rock, Paper, Scissors starting code...what next?

print ("Welcome to Rock, Paper, Scissors")
print ("--------------------------------")
print ("Choose either R,P or S to try and beat the computer")
choice = input("R,P or S").upper()
compChoice = "R"
if (choice=="R" and compChoice=="S"):
    print ("You win!")
elif (choice=="S" and compChoice=="P"):
    print ("You win!")
elif (choice=="P" and compChoice=="R"):
    print ("You win!")
elif (choice == compChoice):
    print ("DRAW!")
else:
    print ("The computer wins!")

Activity 4

Try to finish the code or at least improve it so that it works a bit better!

CHECK:

EMBED:

Option One

Try to make Rock, Paper, Scissors in Scratch!

Option Two

Make one of these programs:

  • I spy
  • Noughts and crosses

CLASSROOM IDEAS:

This needs lots of guidance and practice but it is important that students are given time to "struggle" a little. This is all part of the learning process!