Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
ca57f57
Add Gradle Wrapper files for version 9.0.0
ezekielelvis Jan 9, 2026
d68727c
Refactor cloneBoard method and improve formatting in fromGameRecord m…
ezekielelvis Jan 9, 2026
b150a04
Enhance OnlineChess API with new endpoints for room management and ga…
ezekielelvis Jan 9, 2026
9558ce3
This refactor OnlineChess API to enhance game room management and imp…
ezekielelvis Jan 9, 2026
b62c27f
fix the formatting of the chess.x
ezekielelvis Jan 12, 2026
54a2975
Refactored and removed chess game modules and consolidate logic
ezekielelvis Jan 12, 2026
faf0dca
Add .gitignore for VSCode settings and remove unused logic module ref…
ezekielelvis Jan 14, 2026
c76382b
Enhance chess game UI and functionality:
ezekielelvis Jan 16, 2026
6abfe11
Add comprehensive CSS styles for chess game interface
ezekielelvis Jan 16, 2026
5412877
update refactors the uploading of the static directory files
ezekielelvis Jan 18, 2026
cd7ac02
refactors the if-else statement of validating moves of the chess pice…
ezekielelvis Jan 18, 2026
7bbdbe5
Merge pull request #4 from xtclang/feat-online-mode-feature
ezekielelvis Jan 18, 2026
d280365
Merge pull request #5 from xtclang/feat-online-game-chat
ezekielelvis Jan 18, 2026
b1595ba
Merge pull request #6 from xtclang/feat-ui-redesign
ezekielelvis Jan 18, 2026
b42809a
Feat additional features (#8)
ezekielelvis Feb 2, 2026
12e3344
added move history panel, time control modal, and game end modal fun…
ezekielelvis Feb 16, 2026
fb0635f
Refactor AI move evaluation and improve check detection logic; enhanc…
ezekielelvis Feb 17, 2026
72f1c49
added move history panel, time control modal, and game end modal fun…
ezekielelvis Feb 17, 2026
ed89dfd
feat: add HTTPS requirement and time control adjustments for chat and…
ezekielelvis Mar 3, 2026
ffb5f1c
feat: Integrate Stockfish Online API for AI move selection
ezekielelvis Mar 5, 2026
d7e04f0
feat: Enhance ChessAPIClient with evaluation-based AI and minimax alg…
ezekielelvis Mar 5, 2026
87c03f3
Merge branch 'feat-chess-game-example' into Public-API-integration
ezekielelvis Mar 16, 2026
32cf8db
feat: Update ChessApi to include optional reset request parameter and…
ezekielelvis Mar 16, 2026
d8d85e9
feat: Refactor check detection and board cloning for improved perform…
ezekielelvis Mar 16, 2026
24107d9
Refactor ChessAPIClient: Split responsibilities into dedicated servic…
ezekielelvis Mar 16, 2026
5508cdd
feat: Initialize CardGame module with Gradle configuration and basic …
ezekielelvis Mar 16, 2026
b42660d
Implement basic structure for Card Game with Card, Deck, Hand, Player…
ezekielelvis Mar 24, 2026
122bec1
feat: Update CardGame module to accept command-line arguments and enh…
ezekielelvis Mar 24, 2026
cd0a104
refactor: Simplify CardGame module by removing command-line argument …
ezekielelvis Mar 24, 2026
ae0c5da
Refactor CardGame module and update run logic
ezekielelvis Mar 24, 2026
eed82ea
Delete CardGame/src/main/x/CardGame.x
ezekielelvis Mar 24, 2026
b7d250e
Merge branch 'simple-card-game' of github.com:xtclang/examples into s…
ezekielelvis Mar 24, 2026
e978d68
Merge master into simple-card-game
ezekielelvis Mar 27, 2026
9e6bcfa
Refactor module names to lowercase and add unit tests for Eights game…
ezekielelvis Mar 27, 2026
e0713d3
Add Card, Deck, Hand, and Player test modules with comprehensive unit…
ezekielelvis Mar 27, 2026
5152494
Refactor card game classes to use enums for Suit and Rank, update Car…
ezekielelvis Apr 1, 2026
e6d1245
Add GameConstants class for configuration and refactor game logic to …
ezekielelvis Apr 1, 2026
b6ed569
Refactor CardCollection and Hand classes for improved clarity and con…
ezekielelvis Apr 1, 2026
d5b9825
Update DECK_SIZE calculation in GameConstants for accuracy and clarity
ezekielelvis Apr 1, 2026
40e3d51
refactors some files to make them clean
ezekielelvis Apr 9, 2026
0a590f9
Add comprehensive unit tests for chess game logic and components
ezekielelvis Apr 17, 2026
4fc0654
Fix formatting inconsistencies in ChessGameManagement and update room…
ezekielelvis Apr 20, 2026
37c4d42
Split chess-game into :db and :app subprojects so the build produces …
lagergren Apr 21, 2026
d524289
Route chess-game artifacts into installDist, fail build on test failu…
lagergren Apr 21, 2026
c08afcc
Fix/disable the 13 previously-broken tests, adopt val + @BeforeEach, …
lagergren Apr 21, 2026
3672a34
Drop unused XtcCompileTask import and restructure comment on chess-ga…
lagergren Apr 21, 2026
5bd0358
Refactor Chess Game Management CLI: organize commands into mixins for…
ezekielelvis Apr 21, 2026
e3f4d82
Merge branch 'master' into chess-game-test
ezekielelvis Apr 21, 2026
5e07990
feat: implement chess game viewer with player data and daily puzzles
ezekielelvis Oct 12, 2026
9cb3c43
Chess game service optimization (#27)
ezekielelvis Oct 15, 2026
c440da3
Refactor webapp to use Vite instead of Create React App
ezekielelvis Oct 24, 2026
51b3748
Merge remote-tracking branch 'origin/chess-game-refactor' into chess-…
ezekielelvis Oct 24, 2026
fee7bb1
Merge branch 'master' into chess-game-refactor
ezekielelvis Nov 2, 2026
966f5ae
Refactor chat functionality and update documentation
ezekielelvis Nov 2, 2026
d5866a9
feat: add puzzle component for daily chess challenges
ezekielelvis Nov 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ target/
# Tests
data/
test-output/
# TODO: Why is xunit writing stuff to the build root instead of its test output directory?
xunit/

# Gradle
Expand Down
24 changes: 15 additions & 9 deletions build-logic/src/main/kotlin/webapp-conventions.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
/**
* Convention plugin for XTC modules with webapp content.
*
* Adds the project's webapp/ directory as a resource source, so that
* static content can be served at runtime.
* Adds the project's webapp content as a resource source, so that static
* content can be served at runtime via @StaticContent.
*
* If webapp/package.json exists, the Node/npm plugin builds the webapp
* (e.g. React) automatically before resource processing.
* (e.g. React/Vite) automatically before resource processing, and only the
* build *output* (webapp/build) is exposed as a resource — not the npm
* project itself (node_modules, raw src, config files). Projects with only
* static HTML in webapp/public/ (banking, counter) expose the whole webapp/
* directory as-is, since there's no build step to separate out.
*/

import com.github.gradle.node.npm.task.NpmTask
Expand All @@ -29,9 +33,14 @@ repositories {
mavenCentral()
}

val hasNpmWebapp = file("webapp/package.json").exists()

sourceSets.named("main") {
resources {
srcDir("webapp")
// npm-based webapps (welcome, chess-game) only need their built
// output; the npm project itself (node_modules, src, configs) would
// otherwise get copied into the module's resources unnecessarily.
srcDir(if (hasNpmWebapp) "webapp/build" else "webapp")
}
}

Expand All @@ -42,11 +51,8 @@ sourceSets.named("main") {
// 2. Register a buildWebapp task that runs `npm run build` with proper caching
// 3. Make processResources and processXtcResources depend on buildWebapp so the
// compiled webapp output is available as XTC module resources (used by
// @StaticContent annotations). Both tasks copy the webapp/ resource srcDir.
//
// Projects with only static HTML in webapp/public/ (banking, counter, chess-game)
// skip this block entirely — their content is picked up directly by the srcDir above.
if (file("webapp/package.json").exists()) {
// @StaticContent annotations). Both tasks copy the webapp/build resource srcDir.
if (hasNpmWebapp) {
node {
download.set(providers.gradleProperty("node.download")
.map { it.toBoolean() }
Expand Down
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ dependencies {
xtcModule(projects.welcome)
xtcModule(projects.banking)
xtcModule(projects.counter)
xtcModule(projects.cardGame)

// Chess-game is an included composite build. Gradle's composite-build
// dependency substitution routes these coordinate-based deps to the
Expand Down
465 changes: 249 additions & 216 deletions chess-game/README.md

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions chess-game/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@
*
* Depends on the chessDB module for schema types and on the webapp content
* for @StaticContent annotations.
*
* Note: chess-game/app/cli/ChessGameManagement.x is a @TerminalApp CLI tool
* that lives outside any XTC source set; it has pre-existing lexer errors
* in its $|...| JSON template strings and needs to be relocated into its
* own module — tracked in xtclang/examples#14.
*/

plugins {
Expand Down
33 changes: 0 additions & 33 deletions chess-game/app/cli/ChessGameManagement.x

This file was deleted.

74 changes: 0 additions & 74 deletions chess-game/app/cli/ChessGameManagement/ChatCommands.x

This file was deleted.

59 changes: 0 additions & 59 deletions chess-game/app/cli/ChessGameManagement/GameFlowCommands.x

This file was deleted.

90 changes: 0 additions & 90 deletions chess-game/app/cli/ChessGameManagement/OnlineCommands.x

This file was deleted.

Loading
Loading