Self reflection 26 April

How did you do this week?: I gave it my all and I believe I deserve an A+ because I consistently tried my best.

Details: I have been working on improving the game I programmed, rock paper scissors, by making it a loop and adding other futures. While trying to implement these new features, I faced some coding problems. At first, I tried to solve them myself and although I was able to figure out some by myself, I still had to go to the loremaster for other coding issues. The loremaster helped me solve these problems and therefore my game is now improved.

Proof:

import random

def rps ():
var = 1
while var == 1 :
p = [“rock”, “paper”, “scissors”]
player = input(“Enter your choice (rock/paper/scissors): “)
computer = random.choice(p)
if player == “rock”:
if computer == “paper”:
print (“Computer played paper. Better luck next time :(“)
if computer == “rock”:
print (“Computer played rock. It’s a tie.”)
if computer == “scissors”:
print (“Computer played scissors, YOU WIN!”)
elif player == “paper”:
if computer == “paper”:
print (“Computer played paper, It’s a tie.”)
if computer == “rock”:
print (“Computer played rock, YOU WIN!”)
if computer == “scissors”:
print (“Computer played scissors, Better luck next time :(“)
elif player == “scissors”:
if computer == “paper”:
print (“Computer played paper, YOU WIN!”)
if computer == “rock”:
print (“Computer played rock, Better luck next time :(“)
if computer == “scissors”:
print (“Computer played scissors, It’s a tie.”)
elif player == “hi” or player == “Hi” or player == “Hello” or player == “hello” or player == “hey” or player == “Hey”:
print (“Hello there!”)
else:
print (“ERROR”)

rps()

Goal Reflection: My goal was to improve the rock paper by making it a loop and adding other features such as the ability to say “hi”. For this part I accomplished it. Nevertheless, I also put a goal to start working on other games and I could not accomplish that and now that I think back, I feel that this goal was not very realistic as it would have taken more time then just 2 weeks. For this reasons, I should keep my goals realistic.

Goal: For the next two weeks, I will start working another game. I will choose one from the games Mr. Miller offered me when giving me feedback on my previous self reflection. I will see how it works and write a code for it. I will make sure that it is a bit harder than Rock Paper Scissors in order to get more practice on harder games for the semester exam.

One thought on “Self reflection 26 April”

  1. a) I see you added a loop, and a final condition in which the computer says “Hi” in response to other input. That took all of four full periods? Best effort generally results in more than that.
    b) Your goal was to “start” another game, which certainly should have been possible within 340 minutes (nearly 5 hours).

    For these reasons, I can’t agree that I see you giving your best effort. It just doesn’t look like you’ve done much. If this really does represent 5 hours of work, perhaps you need to be asking questions more often, not staying stuck on an issue as long.

Leave a Reply

Your email address will not be published. Required fields are marked *