Skip to content

brown4224/collision_management-part-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

collision_management

KSU CS 7827 class project for real time collision management


SAMPLE OUTPUT

A PUSHED: 0
PROCESS C STARTED

A PUSHED: 1
B pulled: 3
X : 0 : 0
Y : 0 : 2
Z : 3 : 6
A PUSHED: 2
B pulled: 3
X : 1 : 1
Y : 1 : 2
Z : 3 : 0
C pulled: 3
SECOND 2
X | 0 | 0
Y | 0 | 2
Z | 3 | 6

No collision at second 2

A PUSHED: 3
B pulled: 3
X : 2 : 2
Y : 2 : 2
Z : 3 : 1
C pulled: 3
SECOND 3
X | 1 | 1
Y | 1 | 2
Z | 3 | 0

No collision at second 3

B pulled: 3
A PUSHED: 4
X : 3 : 3
Y : 3 : 2
Z : 3 : 2
C pulled: 3
SECOND 4
X | 2 | 2
Y | 2 | 2
Z | 3 | 1

**** COLLISION between X and Y ****
Detected at second 4
Occurred at second 3)
Location (2, 2)

B pulled: 3
A PUSHED: 5
X : 4 : 4
Y : 4 : 2
Z : 3 : 3
C pulled: 3
SECOND 5
X | 3 | 3
Y | 3 | 2
Z | 3 | 2

**** COLLISION between Y and Z ****
Detected at second 5
Occurred at second 4)
Location (3, 2)

B pulled: 3
A PUSHED: 6
X : 5 : 5
Y : 5 : 2
Z : 3 : 4
C pulled: 3
SECOND 6
X | 4 | 4
Y | 4 | 2
Z | 3 | 3

No collision at second 6

B pulled: 3
A PUSHED: 7
X : 6 : 6
Y : 6 : 2
Z : 3 : 5
C pulled: 3
SECOND 7
X | 5 | 5
Y | 5 | 2
Z | 3 | 4

No collision at second 7

A PUSHED: 8
B pulled: 3
X : 7 : 0
Y : 7 : 2
Z : 3 : 6
C pulled: 3
SECOND 8
X | 6 | 6
Y | 6 | 2
Z | 3 | 5

No collision at second 8

B pulled: 3
A PUSHED: 9
X : 0 : 1
Y : 0 : 2
Z : 3 : 0
C pulled: 3
SECOND 9
X | 7 | 0
Y | 7 | 2
Z | 3 | 6

No collision at second 9

A PUSHED: 10
B pulled: 3
X : 1 : 2
Y : 1 : 2
Z : 3 : 1
C pulled: 3
SECOND 10
X | 0 | 1
Y | 0 | 2
Z | 3 | 0

No collision at second 10

A PUSHED: 11
B pulled: 3
X : 2 : 3
Y : 2 : 2
Z : 3 : 2
C pulled: 3
SECOND 11
X | 1 | 2
Y | 1 | 2
Z | 3 | 1

**** COLLISION between X and Y ****
Detected at second 11
Occurred at second 10)
Location (1, 2)

A PUSHED: 12
B pulled: 3
X : 3 : 4
Y : 3 : 2
Z : 3 : 3
C pulled: 3
SECOND 12
X | 2 | 3
Y | 2 | 2
Z | 3 | 2

No collision at second 12

A PUSHED: 13
B pulled: 3
X : 4 : 5
Y : 4 : 2
Z : 3 : 4
C pulled: 3
SECOND 13
X | 3 | 4
Y | 3 | 2
Z | 3 | 3

No collision at second 13

B pulled: 3
X : 5 : 6
Y : 5 : 2
Z : 3 : 5
A PUSHED: 14
C pulled: 3
SECOND 14
X | 4 | 5
Y | 4 | 2
Z | 3 | 4

No collision at second 14

A PUSHED: 15
B pulled: 3
X : 6 : 0
Y : 6 : 2
Z : 3 : 6
C pulled: 3
SECOND 15
X | 5 | 6
Y | 5 | 2
Z | 3 | 5

No collision at second 15

A PUSHED: 16
B pulled: 3
X : 7 : 1
Y : 7 : 2
Z : 3 : 0
C pulled: 3
SECOND 16
X | 6 | 0
Y | 6 | 2
Z | 3 | 6

No collision at second 16

A PUSHED: 17
B pulled: 3
X : 0 : 2
Y : 0 : 2
Z : 3 : 1
C pulled: 3
SECOND 17
X | 7 | 1
Y | 7 | 2
Z | 3 | 0

No collision at second 17

B pulled: 3
A PUSHED: 18
X : 1 : 3
Y : 1 : 2
Z : 3 : 2
C pulled: 3
SECOND 18
X | 0 | 2
Y | 0 | 2
Z | 3 | 1

**** COLLISION between X and Y ****
Detected at second 18
Occurred at second 17)
Location (0, 2)

B pulled: 3
A PUSHED: 19
X : 2 : 4
Y : 2 : 2
Z : 3 : 3
C pulled: 3
SECOND 19
X | 1 | 3
Y | 1 | 2
Z | 3 | 2

No collision at second 19

B pulled: 3
X : 3 : 5
A FINISHED - NO MORE INBOUND VALUES
Y : 3 : 2
Z : 3 : 4
C pulled: 3
B pulled: 3
X : 4 : 6
Y : 4 : 2
Z : 3 : 5
BufferAB completed
SECOND 20
X | 2 | 4
Y | 2 | 2
Z | 3 | 3

No collision at second 20

C pulled: 3
SECOND 21
X | 3 | 5
Y | 3 | 2
Z | 3 | 4

No collision at second 21

C pulled: 3
SECOND 22
X | 4 | 6
Y | 4 | 2
Z | 3 | 5

No collision at second 22

DONE. 4 collisions occurred over 20 seconds.
BufferCD completed
about to wait

PRESS ENTER TO EXIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages