June 2006
Intermediate to advanced
1344 pages
42h 52m
English
We now take a brief and hopefully entertaining diversion into a popular programming application—simulation and game playing. In this and the next section, we develop a game-playing program with multiple methods. The program employs many of the control statements presented thus far in the book and introduces several new concepts.
There is something in the air of a gambling casino that invigorates people—from the high rollers at the plush mahogany-and-felt craps tables to the quarter poppers at the one-armed bandits. It is the element of chance, the possibility that luck will convert a pocketful of money into a mountain of wealth. Unfortunately, that rarely happens because the odds, of course, favor the ...
Read now
Unlock full access