Java Reference
In-Depth Information
30.21
(
Combine colliding bouncing balls
) Rewrite Programming Exercise 20.5 using
a thread to animate bouncing ball movements.
***30.22
(
Eight Queens animation
) Modify Listing 22.11, EightQueens.java, to display
the intermediate results of the search. As shown in FigureĀ 30.33, the current
row being searched is highlighted. Every one second, a new state of the chess
board is displayed.
F
IGURE
30.33
The intermediate search steps are displayed in the animation for the Eight Queens problem.
Search WWH ::
Custom Search