Black-Zach

Simulating Chance and Choice: What started as a simple coding challenge became a project about risk, math, and the illusion of control.

Author

Zachary Quintana

Date Published

8/1/24

Why I Built It

Most people play Blackjack for fun. I built Black-Zach to teach probability—and to highlight the darker side of gambling.
For my AP Computer Science Principles Create Task, I wanted to design something that didn’t just run code, but made a point: luck always evens out.

The project is both a game and a message. It demonstrates how probability shapes every hand—and how quickly the illusion of control can break down when randomness takes over.

Disclaimer: This is NOT my APCSP Create Task submission, although mine is very similar.

How I Built It

I built the simulator in Snap!, a block-based programming language that taught me how visual code logic translates into real algorithms.

Every part of the game—from the randomization to the cardshoot system—was made from scratch. The cardshoot, which ensures no card appears twice, became the toughest challenge of the project. It forced me to think like a computer scientist: managing lists, depleting data structures, and validating every possible outcome.

Even the rules of Blackjack became a puzzle. Simple as they seem, things like deciding whether an Ace counts as 1 or 11 turned into intricate logic trees that tested every bit of patience I had.

Why I Built It

Most people play Blackjack for fun. I built Black-Zach to teach probability—and to highlight the darker side of gambling.
For my AP Computer Science Principles Create Task, I wanted to design something that didn’t just run code, but made a point: luck always evens out.

The project is both a game and a message. It demonstrates how probability shapes every hand—and how quickly the illusion of control can break down when randomness takes over.

Disclaimer: This is NOT my APCSP Create Task submission, although mine is very similar.

How I Built It

I built the simulator in Snap!, a block-based programming language that taught me how visual code logic translates into real algorithms.

Every part of the game—from the randomization to the cardshoot system—was made from scratch. The cardshoot, which ensures no card appears twice, became the toughest challenge of the project. It forced me to think like a computer scientist: managing lists, depleting data structures, and validating every possible outcome.

Even the rules of Blackjack became a puzzle. Simple as they seem, things like deciding whether an Ace counts as 1 or 11 turned into intricate logic trees that tested every bit of patience I had.

What I Learned

By the end, Black-Zach worked exactly how I imagined it. The game deals, tracks totals, and accurately simulates a full deck—without any duplicates.

Through it, I learned:

  • How to build and manage a dynamic deck system

  • How probability theory plays out in real-time simulations

  • The importance of clarity and structure in block-based programming

And maybe most importantly, how easy it is for randomness to feel like strategy—a lesson that extends far beyond the screen.

What’s Next

If I were to expand the project, I’d replace the numbers with actual card graphics and add a basic betting system. I’d also integrate data tracking—like win rates or longest streaks—to show how probability always balances in the end.

Play It Yourself

Play Black-Zach on Snap!

My personal high score was $63000, See if you can beat me!

Reflection

This project started as a way to pass the AP exam, but it became something deeper—a small, coded warning about the nature of chance.

Every line of logic has shown me that no system of luck can beat the math beneath it.

Play It Yourself

Play Black-Zach on Snap!

My personal high score was $63000, See if you can beat me!

Reflection

This project started as a way to pass the AP exam, but it became something deeper—a small, coded warning about the nature of chance.

Every line of logic has shown me that no system of luck can beat the math beneath it.

Check This Out Next:

The Storm That Shook America: The March 13-16, 2025 Tornado Outbreak

Between March 13 and March 16, 2025, a historic tornado outbreak swept across large parts of the United States — especially the Midwest and the South.

Breathing Heat: What May 2025 Tells Us About Our Changing Climate

May 2025 was the second-warmest May ever recorded, with global temperatures averaging 1.10 °C above the 20th-century norm. It feels like every month a new record is broken for how severe our climate change is getting.

Charting the Future of Our Seas: The 2025 UN Ocean Conference

In mid-June, the coastal city of Nice, France became the center of global ocean diplomacy. From June 9–13, 2025, more than 12,000 delegates — heads of state, scientists, activists, and industry leaders — convened for the third United Nations Ocean Conference (UNOC3)

Flying Through Solar Storms: Planes, Radiation & Our Environment

When you board a high-altitude flight, your mind might wander to legroom, turbulence, or the view — but rarely to cosmic rays.

A Sea of Sails: Amsterdam’s Maritime Comeback

This piece covers SAIL Amsterdam 2025, a major maritime festival that returned in August after ten years. It describes both the historical side (tall ships, Dutch seafaring heritage) and the modern side (sustainability innovations in shipping). It also weaves in reflection, showing how the event connects past and future.

What The Hell Is Punt??

For starters, it has nothing to do with football

Invisible Invaders

The Rising Threat of Microplastics in the Bay Area

a cell phone on a table
a cell phone on a table
a cell phone on a table

Picking Up Neighborhood Trash

PUNT

Copyright 2025 by Zachary Quintana

Copyright 2025 by Zachary Quintana

Copyright 2025 by Zachary Quintana