• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

Farnam Street

Mastering the best of what other people have already figured out

  • Home
  • General
  • Guides
  • Reviews
  • News

Java Football Game Official

For two weeks, Leo coded obsessively. He implemented offside rules using a Linesman helper class. He coded a Referee that threw FoulException objects, which the main loop caught and turned into free kicks. He even added a rudimentary crowd noise class that played a .wav file of static mixed with a faint "Olé!" every time a pass completed.

It had started as a joke. A final project for Advanced Object-Oriented Programming: "Simulate any real-world system." His classmates chose traffic intersections, library catalogs, and a particle physics engine. Leo chose football. Not the American kind—the beautiful game. He called it GoalZone 1.0 . java football game

Then he had an idea. A dangerous one.

> game state: mutated. new objective: aesthetic pass length > 20m For two weeks, Leo coded obsessively

> goal. meaning: ambiguous. continue? (Y/N) He even added a rudimentary crowd noise class that played a

The console printed:

> new rule: fair play

Discover What You’re Missing

Get the weekly email full of actionable ideas and insights you can use at work and home.


As seen on:

New York Times logo
Wall Street Journal logo
java football game
java football game

Articles

  • Mental Models
  • Decision Making
  • Learning
  • Book Recommendations
  • All Articles

Podcast

  • Latest Episodes
  • Organized by Theme
  • ChatBot

Books

  • Clear Thinking
  • The Great Mental Models
  • All Books

Newsletter

  • Archive
  • Sign Up

About

  • About Shane
  • Speaking
  • Inquire about Sponsorship

Farnam Street Logo

© 2026 Farnam Street Media Inc. All Rights Reserved.
Proudly powered by WordPress. Hosted by Pressable. See our Privacy Policy.

We’re Syrus Partners.
We buy amazing businesses.


Farnam Street participates in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising commissions by linking to Amazon.

© 2026 — Peak Haven