PeakeCoin Chess: A Learning AI That Lives in Your Browser



Play here: https://geocities.ws/peakecoin/games/chess/

Most chess games treat each match like it never happened.

Win or lose, close the tab, and everything resets — the AI forgets, your decisions vanish, and nothing carries forward.

PeakeCoin Chess was built to do the opposite.

This is a fully browser-based chess game where:

  • the AI learns from you
  • your progress persists locally
  • no server is required
  • and your data belongs to you

Why I Built This

I wanted a chess game that behaved more like a long conversation than a series of one-off matches.

Not faster.
Not flashier.
Smarter over time.

And I wanted it to run anywhere, even:

  • offline
  • on low-power devices
  • without accounts, ads, or tracking

So the entire game — board logic, AI, scoring, and storage — runs 100% in the browser.


100% Front-End, No Backend Required

There is:

  • ❌ no database server
  • ❌ no API dependency
  • ❌ no user tracking
  • ❌ no cloud requirement

The game is built with:

  • Vanilla JavaScript
  • HTML5 Canvas
  • CSS
  • Browser storage (localStorage + IndexedDB)

You can literally open index.html and play.

That’s intentional.


A Chess AI That Actually Learns

The AI opponent isn’t scripted with hardcoded openings or static heuristics.

It uses reinforcement learning (Q-learning) and improves based on experience.

How it learns:

  • Evaluates each move (captures, center control, development)
  • Stores state-action values in browser storage
  • Applies rewards after each game
  • Adjusts future decisions based on outcomes

Every game you play changes how the AI behaves next time.

No reset unless you clear it.


Difficulty That Adapts to You

Instead of picking a difficulty once and forgetting it, the game adjusts automatically.

Difficulty is based on your win rate:

  • Easy: struggling players (more randomness)
  • Normal: balanced play
  • Hard: consistent winners
  • Insane: high win rates, minimal randomness

You don’t grind ranks.
The game meets you where you are.


Persistent Player Stats (Saved Locally)

Each player profile tracks:

  • games played
  • wins / losses / draws
  • total score
  • difficulty history
  • full game history

Scores are saved locally and can be:

  • exported as JSON
  • exported as CSV
  • imported on another device
  • backed up manually

No login system.
No cloud lock-in.
Your data stays yours.


Optional Global Rankings (Without Forcing It)

If you want, the game can optionally sync stats to a global board.

If you don’t?
Nothing breaks.

Offline mode is the default.
Global sync is additive, not required.

This was a deliberate design choice.


Game Variants Included

  • Standard Chess
  • Chess960 (Fischer Random) — shuffled back rank
  • Custom piece symbols — fully configurable

All rules are enforced:

  • legal move validation
  • check / checkmate
  • stalemate
  • pawn promotion

No shortcuts.


Why This Matters (To Me)

This project is part of a larger idea:

Software doesn’t have to extract value to be valuable.

Games can:

  • teach patience
  • reward thinking
  • respect the player’s time
  • run without surveillance

Chess has survived for centuries because it assumes intelligence.
This project tries to do the same.


What’s Next (Maybe)

This foundation supports a lot:

  • deeper AI analysis tools
  • move history visualization
  • save/load board states
  • educational overlays
  • integration with other projects

But even as it is, it’s complete.

Open it.
Play it.
Come back later.

The AI will remember you.

That’s the point.



0
0
0.000
3 comments
avatar

Congratulations @paulmoon410! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 80000 upvotes.
Your next target is to reach 85000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

0
0
0.000
avatar

The idea looks interesting. I don't know anything about chess, but that picture of the bird makes it look like it's quite the expert at the game.

0
0
0.000