forked from CodeYouOrg/intro_pscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client-a.txt
45 lines (34 loc) · 1.23 KB
/
client-a.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Client Task A #
# Add your pseudocode to this file below this line: #
# ------------------------------------------------- #
//Create UI
Button to initialize: Choose Number 1-10
Output display
Number input section
//Random Choice Generator
Choose random integer (1-10)
//Game functions
Ask for input: What number do you think I chose?
Player input number
If correct, display: You win!
Delay 10 seconds
Loop game from beginning
If incorrect display: Not even close! Try again!
Delay 10 seconds
Delay 10 seconds
Ask for input: What number do you think I chose?
Player input number
If correct, display: You win!
Delay 10 seconds
Loop game from beginning
If incorrect display: Not even close! One more chance!
Delay 10 seconds
Ask for input: What number do you think I chose?
Delay 10 seconds
Player input number
If correct, display: You win!
Delay 10 seconds
Loop game from beginning
If incorrect display: Not even close! Loser!
Delay 10 seconds
Loop game from beginning