Download presentation
Presentation is loading. Please wait.
Published byRudolf Edwards Modified over 8 years ago
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.