Skip to content

Commit

Permalink
fix template in move.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Moiseenko <[email protected]>
  • Loading branch information
eupp committed Jun 26, 2023
1 parent 5e3d892 commit ca3d14d
Show file tree
Hide file tree
Showing 26 changed files with 36 additions and 38 deletions.
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/ALittleSpontaneity/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/ALittleSpontaneity/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand Down
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/ConsumeAnObject/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/ConsumeAnObject/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand Down
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/DrawALine/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/DrawALine/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand Down
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/GivingDirection/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/GivingDirection/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand Down
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/HavingFun/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
22 changes: 11 additions & 11 deletions WarmUp/MovingOn/HavingFun/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ files:
- name: src/move.cpp
visible: true
placeholders:
- offset: 69
length: 29
placeholder_text: position
dependency:
section: WarmUp
lesson: MovingOn
task: LookAround
file: src/move.cpp
placeholder: 1
is_visible: false
- offset: 69
length: 27
placeholder_text: position
dependency:
section: WarmUp
lesson: MovingOn
task: LookAround
file: src/move.cpp
placeholder: 1
is_visible: false
- name: src/main.cpp
visible: true
editable: true
- name: CMakeLists.txt
visible: false
feedback_link: https://docs.google.com/forms/d/e/1FAIpQLScfBp0gzdxWOmXvQVdyNmeO1od7CG7zxLgNUP4LzKxLBCzkhQ/viewform?usp=pp_url&entry.2103429047=Warm+Up/Moving+On/Having+Fun
feedback_link: https://docs.google.com/forms/d/e/1FAIpQLScfBp0gzdxWOmXvQVdyNmeO1od7CG7zxLgNUP4LzKxLBCzkhQ/viewform?usp=pp_url&entry.2103429047=Warm+Up/Moving+On/Having+Fun
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/HuntingBugs/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/HuntingBugs/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand Down
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/KeepSpinning/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/KeepSpinning/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand Down
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/LimitsOfPossible/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/LimitsOfPossible/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand Down
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/LookAround/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
4 changes: 2 additions & 2 deletions WarmUp/MovingOn/LookAround/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand All @@ -19,4 +19,4 @@ files:
file: src/move.cpp
placeholder: 1
is_visible: false
feedback_link: https://docs.google.com/forms/d/e/1FAIpQLScfBp0gzdxWOmXvQVdyNmeO1od7CG7zxLgNUP4LzKxLBCzkhQ/viewform?usp=pp_url&entry.2103429047=Warm+Up/Moving+On/Look+Around
feedback_link: https://docs.google.com/forms/d/e/1FAIpQLScfBp0gzdxWOmXvQVdyNmeO1od7CG7zxLgNUP4LzKxLBCzkhQ/viewform?usp=pp_url&entry.2103429047=Warm+Up/Moving+On/Look+Around
2 changes: 0 additions & 2 deletions WarmUp/MovingOn/MoveAnObject/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
float move(float position, float velocity, float delta) {
// Please make sure to put your code in the frame below!
// The code changes outside the frame may not persist in the subsequent steps!
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/MoveAnObject/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ files:
- name: src/move.cpp
visible: true
placeholders:
- offset: 213
- offset: 69
length: 27
placeholder_text: position
- name: test/test.cpp
Expand Down
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/MovingUp/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/MovingUp/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand Down
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/PlayAround/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/PlayAround/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand Down
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/RunningInALoop/src/move.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
float move(float position, float velocity, float delta) {
return position + (velocity * delta);
return position + delta * velocity;
}
2 changes: 1 addition & 1 deletion WarmUp/MovingOn/RunningInALoop/task-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ files:
visible: true
placeholders:
- offset: 69
length: 29
length: 27
placeholder_text: position
dependency:
section: WarmUp
Expand Down

0 comments on commit ca3d14d

Please sign in to comment.