forked from onyudo/intro_pscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient-b.txt
More file actions
29 lines (14 loc) · 789 Bytes
/
Copy pathclient-b.txt
File metadata and controls
29 lines (14 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Client Task B #
# Add your pseudocode to this file below this line: #
# ------------------------------------------------- #
START
Display Text "Welcome to the Warehouse."
Set variable 'User Location' with randomly generated location in a 20x20 x/y axis
Set variable 'Target Location' with randomly generated location in a 20x20 x/y axis
WHILE 'User Location' does not equal 'Target Location'
Display Text "You are currently at 'User Location' and you want to be at 'Target Location'."
Display Text "Do you want to move one space North, South, East, Or West?"
Update 'User Location' according to response where North adds 1 to y axis, South adds -1 to y axis, East adds 1 to x axis and West adds -1 to x axis.
END WHILE
Display Text "You have arrived!"
END