An engaging and approachable resource for beginning-to-intermediate coders eager to learn advanced ideas in computer programming.
In The Computer Always Wins, Elliot Lichtman will teach you some of computer science’s most powerful concepts in a refreshingly accessible way: exploring them through word games, board games, and strategy games you already know. Learn recursion by playing tic-tac-toe, efficient search through puzzle games like sudoku and Wordle, and machine learning by way of the playground classic rock-paper-scissors. Finish the book, and you’ll come away with not only a deeper understanding of these foundational programming techniques but also a new appreciation for the amazing feats that can be accomplished using simple, readable code.
Inhaltsverzeichnis
Preface: Why This Book? < BR> How to Use This Book< BR> Introduction: Why Algorithms? < BR> Chapter Summaries< BR> Games that Involve Searching and Sorting< BR> 1. Guess Wrong Answers< BR> 2. The Road Not Taken< BR> 3. One Step at a Time< BR> Turn-Based Strategy Games< BR> 4. Whose Turn Is It Anyway? < BR> 5. Move Faster< BR> 6. Pruning the Tree< BR> Using Random Simulation< BR> 7. Throwing Darts< BR> 8. Aiming Darts< BR> 9. Aiming Darts at Others< BR> Tracking and Training< BR> 10. Rock, Paper… Paper< BR> 11. Black Boxes< BR> 12. Minimizing Regret< BR> Afterward: More Than a Game< BR> Appendix: Python Review< BR> References< BR> About the Author< BR> Index