Skip to content
denovPublic

About

Browser games built for fun and as personal challenges

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🕹️ games

Small browser games built for fun, as challenges, and as an excuse to try new tech. Each one runs entirely in the browser: no build step, no backend, no install. Open it and play.

🔴🔵 C4: built from Kauai to Oakland

The challenge: board a flight in Kauai and land in Oakland with a working four-in-a-row game, including an AI opponent that actually fights back.

The catch: it was offline, and this was before LLMs. There was no Stack Overflow, no docs and no AI copilot, just a laptop, a brain and a few hours over the Pacific. ✈️🌊

It shipped before the wheels touched down. 🛬

What's inside:

  • 🧠 A minimax AI with alpha-beta pruning. It searches several moves ahead and cuts off branches it doesn't need to explore, so it finds strong moves fast.
  • ⚡ Web Workers. The AI does its thinking off the main thread, so the board never freezes while the computer decides how to beat you.
  • 🎨 p5.js rendering. The board, pieces, hover preview and win screen are all drawn on a canvas.
  • ✨ Modern JavaScript. It uses ES modules, classes, arrow functions and destructuring.

👉 Play it · Play live on syncopated.net · Read about it

☄️ Space Rocks

A classic arcade space shooter. Pilot your ship, blast the rocks, and watch big asteroids split into smaller, faster fragments that are worth more points. The levels keep getting harder until you run out of ships.

  • 🎮 Controls: ← → to rotate, ↑ to thrust, X to fire, P to play again
  • 💥 Physics and sprites powered by p5.js + p5.play, with screen wraparound, a thrust animation and particle explosions

👉 Play it · Play live on syncopated.net

Run locally

ES modules and Web Workers need to be served over HTTP, so opening the files directly from disk won't work:

npx serve .        # or: python3 -m http.server

Then open http://localhost:3000/c4/ (port 8000 if you used Python).


Made by Deno Vichas. More games coming.

About

Browser games built for fun and as personal challenges

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages