begin
ComputerMoves = randint in range 1-3
PlayerMoves " please enter rock paper or scissors"
case select PlayerMoves
case rock
Move = 1
case paper
Move = 2
case = scissors
Move = 3
winner = ""
Case select = winner
case ComputerMoves = Move
Output "Draw"
case ComputerMoves = 1 AND Move = 2
Output "Player wins"
case Computer Moves = 2 AND Move = 3
Oputput "Player wins"
case ComputerMoves = 3 AND Move = 1
Output "Computer wins"
case ComputerMoves = 2 AND Move = 1
Output "Computer wins"
case Computer Moves = 3 AND Move = 2
Oputput "Computer wins"
case ComputerMoves = 1 AND Move = 3
Output "Player wins"
Sunday, 30 October 2016
practice pseudocode for text based game 3
continued
Option3 = false
while Option3 = false
Move 3 = "what do you do"
If Move3 = forward then
Output "there is a speaker in the far right corner of the room that crackles to life"
Option3 = true
else then
Output "that isn't an option"
Option3 = false
Option4 = false
while option4 = false
Question2 "Johnny's mum has 3 children the first is called may, the second is called June. what is the name of the third?"
case select Question2
case = Johnny or john
Output " that is correct"
Option4 = true
case = July
Output"that is the obvious answer re read the question"
Option4 = false
else
Output" that is incorrect try again"
Option4 = false
Option3 = false
while Option3 = false
Move 3 = "what do you do"
If Move3 = forward then
Output "there is a speaker in the far right corner of the room that crackles to life"
Option3 = true
else then
Output "that isn't an option"
Option3 = false
Option4 = false
while option4 = false
Question2 "Johnny's mum has 3 children the first is called may, the second is called June. what is the name of the third?"
case select Question2
case = Johnny or john
Output " that is correct"
Option4 = true
case = July
Output"that is the obvious answer re read the question"
Option4 = false
else
Output" that is incorrect try again"
Option4 = false
practice pseudocode for text based game 2
continued
Output "you are in a hallway, out of the window in front of you there is a destroyed city and horrifying monsters"
Option2 = false
while Option2 = false
Move2 = "there is a wall to your right and a hall to your left what do you do"
If Move2 = left then
Output "you are in a large room with stairs in front of you"
Option2 = true
else then
Output "that isn't an option"
Option2 = false
Output "you are in a hallway, out of the window in front of you there is a destroyed city and horrifying monsters"
Option2 = false
while Option2 = false
Move2 = "there is a wall to your right and a hall to your left what do you do"
If Move2 = left then
Output "you are in a large room with stairs in front of you"
Option2 = true
else then
Output "that isn't an option"
Option2 = false
Friday, 28 October 2016
practice pseudo code for text base game1
Begin
Input Name
Output "you are in an unknown room to your left is a door"
Option1 = false
While Option1 = false
Move1 = "what do you do?"
If Move1 = left Then
Output "The door has a note on it that reads"
Question1 = "a ball is dropped from the 64th floor of a building if each bounce is half that of the last how many bounces will it take to reach the 2nd floor"
If Question1 = 5 Then
Output " well done"
Option1 = true
Else
Output "try again"
Option1 = false
Input Name
Output "you are in an unknown room to your left is a door"
Option1 = false
While Option1 = false
Move1 = "what do you do?"
If Move1 = left Then
Output "The door has a note on it that reads"
Question1 = "a ball is dropped from the 64th floor of a building if each bounce is half that of the last how many bounces will it take to reach the 2nd floor"
If Question1 = 5 Then
Output " well done"
Option1 = true
Else
Output "try again"
Option1 = false
Tuesday, 25 October 2016
half term blog 1
the first one is -111000011110 + 110011100011 = 111011000000 or 2756
the second one is 001110 * 01 = 0001110 or 14
half term blog 1
the first one is -111000011110 + 110011100011 = 111011000000 or 2756
the second one is 001110 * 01 = 0001110 or 14
Monday, 17 October 2016
Thursday, 13 October 2016
Monday, 10 October 2016
Wednesday, 5 October 2016
Subscribe to:
Posts (Atom)



