Skip to content

Commit ca3d14d

Browse files
committed
fix template in move.cpp
Signed-off-by: Evgenii Moiseenko <evg.moiseenko94@gmail.com>
1 parent 5e3d892 commit ca3d14d

File tree

26 files changed

+36
-38
lines changed

26 files changed

+36
-38
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/ALittleSpontaneity/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ files:
9696
visible: true
9797
placeholders:
9898
- offset: 69
99-
length: 29
99+
length: 27
100100
placeholder_text: position
101101
dependency:
102102
section: WarmUp
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/ConsumeAnObject/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ files:
7373
visible: true
7474
placeholders:
7575
- offset: 69
76-
length: 29
76+
length: 27
7777
placeholder_text: position
7878
dependency:
7979
section: WarmUp
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/DrawALine/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ files:
5757
visible: true
5858
placeholders:
5959
- offset: 69
60-
length: 29
60+
length: 27
6161
placeholder_text: position
6262
dependency:
6363
section: WarmUp
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/GivingDirection/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ files:
4444
visible: true
4545
placeholders:
4646
- offset: 69
47-
length: 29
47+
length: 27
4848
placeholder_text: position
4949
dependency:
5050
section: WarmUp
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/HavingFun/task-info.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ files:
44
- name: src/move.cpp
55
visible: true
66
placeholders:
7-
- offset: 69
8-
length: 29
9-
placeholder_text: position
10-
dependency:
11-
section: WarmUp
12-
lesson: MovingOn
13-
task: LookAround
14-
file: src/move.cpp
15-
placeholder: 1
16-
is_visible: false
7+
- offset: 69
8+
length: 27
9+
placeholder_text: position
10+
dependency:
11+
section: WarmUp
12+
lesson: MovingOn
13+
task: LookAround
14+
file: src/move.cpp
15+
placeholder: 1
16+
is_visible: false
1717
- name: src/main.cpp
1818
visible: true
1919
editable: true
2020
- name: CMakeLists.txt
2121
visible: false
22-
feedback_link: https://docs.google.com/forms/d/e/1FAIpQLScfBp0gzdxWOmXvQVdyNmeO1od7CG7zxLgNUP4LzKxLBCzkhQ/viewform?usp=pp_url&entry.2103429047=Warm+Up/Moving+On/Having+Fun
22+
feedback_link: https://docs.google.com/forms/d/e/1FAIpQLScfBp0gzdxWOmXvQVdyNmeO1od7CG7zxLgNUP4LzKxLBCzkhQ/viewform?usp=pp_url&entry.2103429047=Warm+Up/Moving+On/Having+Fun
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/HuntingBugs/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ files:
123123
visible: true
124124
placeholders:
125125
- offset: 69
126-
length: 29
126+
length: 27
127127
placeholder_text: position
128128
dependency:
129129
section: WarmUp
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/KeepSpinning/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ files:
123123
visible: true
124124
placeholders:
125125
- offset: 69
126-
length: 29
126+
length: 27
127127
placeholder_text: position
128128
dependency:
129129
section: WarmUp
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/LimitsOfPossible/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ files:
123123
visible: true
124124
placeholders:
125125
- offset: 69
126-
length: 29
126+
length: 27
127127
placeholder_text: position
128128
dependency:
129129
section: WarmUp
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/LookAround/task-info.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ files:
1010
visible: true
1111
placeholders:
1212
- offset: 69
13-
length: 29
13+
length: 27
1414
placeholder_text: position
1515
dependency:
1616
section: WarmUp
@@ -19,4 +19,4 @@ files:
1919
file: src/move.cpp
2020
placeholder: 1
2121
is_visible: false
22-
feedback_link: https://docs.google.com/forms/d/e/1FAIpQLScfBp0gzdxWOmXvQVdyNmeO1od7CG7zxLgNUP4LzKxLBCzkhQ/viewform?usp=pp_url&entry.2103429047=Warm+Up/Moving+On/Look+Around
22+
feedback_link: https://docs.google.com/forms/d/e/1FAIpQLScfBp0gzdxWOmXvQVdyNmeO1od7CG7zxLgNUP4LzKxLBCzkhQ/viewform?usp=pp_url&entry.2103429047=Warm+Up/Moving+On/Look+Around
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
// Please make sure to put your code in the frame below!
3-
// The code changes outside the frame may not persist in the subsequent steps!
42
return position + delta * velocity;
53
}

WarmUp/MovingOn/MoveAnObject/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ files:
88
- name: src/move.cpp
99
visible: true
1010
placeholders:
11-
- offset: 213
11+
- offset: 69
1212
length: 27
1313
placeholder_text: position
1414
- name: test/test.cpp

WarmUp/MovingOn/MovingUp/src/move.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/MovingUp/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ files:
1717
visible: true
1818
placeholders:
1919
- offset: 69
20-
length: 29
20+
length: 27
2121
placeholder_text: position
2222
dependency:
2323
section: WarmUp
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/PlayAround/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ files:
125125
visible: true
126126
placeholders:
127127
- offset: 69
128-
length: 29
128+
length: 27
129129
placeholder_text: position
130130
dependency:
131131
section: WarmUp
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
float move(float position, float velocity, float delta) {
2-
return position + (velocity * delta);
2+
return position + delta * velocity;
33
}

WarmUp/MovingOn/RunningInALoop/task-info.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ files:
116116
visible: true
117117
placeholders:
118118
- offset: 69
119-
length: 29
119+
length: 27
120120
placeholder_text: position
121121
dependency:
122122
section: WarmUp

0 commit comments

Comments
 (0)