Commit Graph
25 Commits
Author SHA1 Message Date
Josh-Heaps f09ca60315 foo bar 2026-06-12 18:02:09 -06:00
Josh-Heaps 743c395e11 Choose color against cpu 2026-06-12 10:51:26 -06:00
Josh-HeapsandClaude Opus 4.8 c92c46e6d4 Render the board from pushed state
Clients now render from the state delivered with each move/update and
drop stale or echoed updates via a ply-version guard, instead of issuing
a full game-state fetch per event. Adds captured-piece trays, a material
advantage badge, a move list, a status line, and the mobile menu toggle.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-06-10 16:58:22 -06:00
Josh-HeapsandClaude Opus 4.8 b651683e63 Add PGN export and a Copy PGN button for finished games
- Record moves in standard algebraic notation (GameState.SanHistory), built at
  move time in ChessService (captures, disambiguation, castling, promotion,
  en passant, and the check/mate suffix)
- Add PgnExporter.ToPgn (seven-tag header + movetext + result) and a
  GET /api/chess/{gameId}/pgn endpoint
- Show a Copy PGN button when a game ends on both the play and watch pages,
  prefetching the PGN so it works during the post-game cleanup window

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-06-08 19:14:39 -06:00
Josh-HeapsandClaude Opus 4.8 2db95cec34 Add spectator watch page, forfeit-on-new-game, CPU self-play, and threefold repetition
- /watch live feed of active games with click-to-fullscreen and per-game back button
- Starting a new game forfeits the in-progress game; opponent is flagged the winner
- Watch CPU vs CPU self-play games; results shown for ~30s before cleanup
- Detect threefold repetition in the C# rules layer and end the game as a draw

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-06-08 16:21:49 -06:00
Josh-HeapsandClaude Opus 4.6 8043eee4cc Replace file-based blog with API-backed service
BlogService now fetches from Media.JoshHeaps.Net API via HttpClient
with in-memory caching (5-min TTL) and stale cache fallback.
Removed Markdig/YamlDotNet dependencies. All page models now async.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-03-06 15:33:51 -07:00
jheaps 7c77cd0e52 Add square numbers and bug fixes 2025-10-17 12:10:08 -06:00
jheaps 93bdb3518a Bug fixes 2025-10-17 11:41:50 -06:00
jheaps c2622132bc Revert site back to normal, add memory lane 2025-10-03 10:43:15 -06:00
jheaps 95b4ae63ea Anniversary page <3 2025-10-02 10:16:05 -06:00
jheaps edab13f8e4 Javascript cleanup 2025-09-25 10:46:24 -06:00
jheaps 10bf9b3d30 Bring debug.js back (I don't remember killing it) 2025-09-19 16:09:47 -06:00
jheaps 1c0e624aef Add particles page 2025-08-11 14:14:10 -06:00
jheaps f4e377c116 Revert "Add db for backup and memory happiness"
This reverts commit 9003d2c4dd.
2025-08-04 14:20:01 -06:00
jheaps 9003d2c4dd Add db for backup and memory happiness 2025-07-05 18:48:30 -06:00
jheaps d799b88403 Add stockfish to chess 2025-07-03 13:20:53 -06:00
jheaps 966013bb09 Revert "Add game (it's stupid but it's there)"
This reverts commit cfd8a54259.
2025-07-03 09:17:33 -06:00
jheaps cfd8a54259 Add game (it's stupid but it's there) 2025-05-27 10:40:39 -06:00
jheaps ed35a2e86f Add pawn promotion 2025-03-28 10:41:29 -06:00
jheaps 9f6327f5d9 Add cookies and game deletions 2025-03-27 16:15:48 -06:00
jheaps 79a37c911d Update home page 2025-03-27 15:03:21 -06:00
jheaps fbed5ae789 Add chess (Oh my gosh big commit) 2025-03-27 13:54:07 -06:00
jheaps 35cb2a22f9 major updates 2024-11-25 12:05:03 -07:00
jheaps f296ef8ae1 fix welcome message styling 2024-11-22 15:26:47 -07:00
jheaps 8ae65986d4 Add project files. 2024-11-22 14:06:04 -07:00