Presentation is loading. Please wait.

Presentation is loading. Please wait.

MATLAB Lab. 7 2011.04.18. Simulating Billiard Game Modify hitball.m and myball.m to simulate 3-cushion billiard game. Rules: –two players –three balls.

Similar presentations


Presentation on theme: "MATLAB Lab. 7 2011.04.18. Simulating Billiard Game Modify hitball.m and myball.m to simulate 3-cushion billiard game. Rules: –two players –three balls."— Presentation transcript:

1 MATLAB Lab. 7 2011.04.18

2 Simulating Billiard Game Modify hitball.m and myball.m to simulate 3-cushion billiard game. Rules: –two players –three balls (red, white, yellow) –for each turn, a player hits white or yellow ball. If one gets a point, he (she) keeps his turn. –to get a point, the cue ball should contact the cushions of the table at least three times before first touching the second object ball. Specifications –each player can specify the initial direction and the velocity of the cue ball. –counting the score for each players. –you may consider the spin of the ball for more fun!! 2

3 hitball.m 3

4 myball.m 4


Download ppt "MATLAB Lab. 7 2011.04.18. Simulating Billiard Game Modify hitball.m and myball.m to simulate 3-cushion billiard game. Rules: –two players –three balls."

Similar presentations


Ads by Google