Two Computers Play Rock Paper Scissors

In this fun demo, two Apple computers “talk” over an Ethernet cable and play Rock Paper Scissors against each other. It’s a neat peek at machine-to-machine interaction, and it begs the question: what strategies might emerge if you layered in simple AI—pattern tracking, opponent modeling, or adaptive randomness?

What’s Going On

  • Direct communication: The machines exchange messages over Ethernet to coordinate throws and results.
  • Synchronized cadence: A shared “count” ensures simultaneous reveals (no reaction advantage).
  • Deterministic vs. random: Without AI, most scripts use fixed or pseudo-random sequences; with AI, they could adapt.

Ideas to Explore Next

  • Adaptive strategy: Track opponent frequencies (e.g., rock bias) and counter dynamically.
  • Meta-randomization: Switch among several PRNGs or weighted policies to stay unpredictable.
  • Best-of-N protocols: Add tie handling, match state, and logging for post-game analysis.
  • Network robustness: Include retries, checksums, and sequence IDs to avoid desyncs.

Discussion

Would you prefer a playful “Apple vs. Microsoft” head-to-head? What AI twist would you add—pattern detection, reinforcement learning, or bluffing via biased cycles? Tell us how you’d evolve this project!

Related Articles

Responses