
The Computer Always Wins
A Playful Introduction to Algorithms through Puzzles and Strategy Games
Elliot Lichtman(Author)
MIT Press
Published on 29. April 2025
Book
Paperback/Softback
208 pages
978-0-262-55169-4 (ISBN)
Description
An engaging and approachable resource for beginning-to-intermediate coders eager to learn advanced ideas in computer programming. Too often, the magic of computer science is locked behind an intimidating wall of syntax and mathematics. Students of all ages are drawn to the idea of using computers to ask questions and solve problems, but the standard computer science curriculum demands that they first slog through a seemingly endless run of dull, technical muck. They want to tinker; they are told to trudge. In The Computer Always Wins, Elliot Joseph Lichtman strips away these conventional barriers, using familiar puzzles and strategy games to explore some of computer science s most inspiring ideas. The Computer Always Wins is designed for readers who know the bare-bones basics of computer programming and are ready to truly love it. The book introduces some of the field s most powerful concepts but does so accessibly by framing them in the context of word games, board games, and strategy games that readers already know. Tic-Tac-Toe helps a student understand recursion. Wordle teaches how to efficiently parse an enormous list. Rock-paper-scissors becomes an intuitive gateway to machine learning. By the end of the book, readers come away with not only a better understanding of these foundational strategies, but also a joyful appreciation for the amazing and exciting feats that can be accomplished using simple, readable code.
More details
Language
English
Place of publication
Cambridge (Massachusetts)
United States
Publishing group
MIT Press Ltd
Product notice
Paperback (trade)
Illustrations
123 COLOR ILLUS., 11 BLACK AND WHITE ILLUS
Dimensions
Height: 222 mm
Width: 152 mm
Thickness: 17 mm
Weight
319 gr
ISBN-13
978-0-262-55169-4 (9780262551694)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Additional editions

Elliot Lichtman
The Computer Always Wins
A Playful Introduction to Algorithms through Puzzles and Strategy Games
E-Book
05/2025
MIT Press
€22.49
Available for download
Person
Elliot Joseph Lichtman started teaching online classes in computer science in March 2020. At the time, he was a freshman in high school. His small classes in algorithm design quickly grew into a series of larger and longer offerings. From those offerings, this book was born. Lichtman is now studying at Yale University.
Content
Preface: Why This Book?
How to Use This Book
Introduction: Why Algorithms?
Chapter Summaries
Games that Involve Searching and Sorting
1. Guess Wrong Answers
2. The Road Not Taken
3. One Step at a Time
Turn-Based Strategy Games
4. Whose Turn Is It Anyway?
5. Move Faster
6. Pruning the Tree
Using Random Simulation
7. Throwing Darts
8. Aiming Darts
9. Aiming Darts at Others
Tracking and Training
10. Rock, Paper...Paper
11. Black Boxes
12. Minimizing Regret
Afterward: More Than a Game
Appendix: Python Review
References
About the Author
Index
How to Use This Book
Introduction: Why Algorithms?
Chapter Summaries
Games that Involve Searching and Sorting
1. Guess Wrong Answers
2. The Road Not Taken
3. One Step at a Time
Turn-Based Strategy Games
4. Whose Turn Is It Anyway?
5. Move Faster
6. Pruning the Tree
Using Random Simulation
7. Throwing Darts
8. Aiming Darts
9. Aiming Darts at Others
Tracking and Training
10. Rock, Paper...Paper
11. Black Boxes
12. Minimizing Regret
Afterward: More Than a Game
Appendix: Python Review
References
About the Author
Index