Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jumpNrun
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wise2023_jumpnrun
jumpNrun
Compare revisions
6207f6b26b6e469b76e64ab6a26cffcec0611866 to 6529d0d947e78a604cf93cf5a27c00109d3f340b
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
wise2023_jumpnrun/jumpnrun
Select target project
No results found
6529d0d947e78a604cf93cf5a27c00109d3f340b
Select Git revision
Branches
main
Tags
Abgabe
Swap
Target
wise2023_jumpnrun/jumpnrun
Select target project
wise2023_jumpnrun/jumpnrun
1 result
6207f6b26b6e469b76e64ab6a26cffcec0611866
Select Git revision
Branches
main
Tags
Abgabe
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Korrektur der Vorbedingung
· ac5519a1
Janos
authored
1 year ago
ac5519a1
Merge branch 'main' of git.imp.fu-berlin.de:wise2023_jumpnrun/jumpnrun
· 6529d0d9
Janos
authored
1 year ago
6529d0d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
auto.c
+3
-2
3 additions, 2 deletions
auto.c
with
3 additions
and
2 deletions
auto.c
View file @
6529d0d9
...
...
@@ -74,7 +74,7 @@ struct Car* init_car(int speed,int width,int height,int pred_pos,int pred_width,
}
// Vorbedinung:
// 0 < speed < 10, 0 < width < 500, 0 < height < 100,
// 0 <
|
speed
|
< 10, 0 < width < 500, 0 < height < 100,
// 0 <= start_pos <= 900
// Nachbedingung: Initialisierte LinkedList von Autos, abhängig von den Parametern
...
...
@@ -218,8 +218,9 @@ void free_car(struct Row *n){
// Bestimmt, ob es eine Kollision des Spielers mit einem Auto/Boot gibt
// Funktion wird nur aufgerufem, wenn der Spieler in der gleichen Reihe mit dem Auto oder Boot ist
// Im positiven Fall wird true zurück gegeben
// Vorbedingung: Spieler ist in der gleichen Reihe, wie das Fahrzeug
// Nachbedingung: Gibt true zurück, wenn sich der Spieler und das Auto überschneiden, sonst false
bool
kollision
(
int
x_pos
,
int
width
){
for
(
int
j
=
0
;
j
<
3
;
j
++
){
...
...
This diff is collapsed.
Click to expand it.