feat(game): introduce game modes and time control features
Build & Test (NowChessSystems) TeamCity build failed

This commit is contained in:
2026-04-23 21:56:21 +02:00
parent 21d3d87543
commit 3df199afa1
100 changed files with 1676 additions and 604 deletions
+5 -1
View File
@@ -18,6 +18,10 @@ headers {
body:json {
{
"white": {"id": "p1", "displayName": "Alice"},
"black": {"id": "p2", "displayName": "Bob"}
"black": {"id": "p2", "displayName": "Bob"},
"timeControl": {
"limitSeconds": 300,
"incrementSeconds": 3
}
}
}
+5 -2
View File
@@ -4,9 +4,12 @@ meta {
seq: 2
}
http {
method: GET
get {
url: {{baseUrl}}/api/board/game/{{gameId}}
body: none
auth: none
}
vars:pre-request {
gameId: Yg200tOF
}
+10 -7
View File
@@ -1,19 +1,22 @@
meta {
name: Stream Game
type: http
type: ws
seq: 3
}
get {
url: {{baseUrl}}/api/board/game/{{gameId}}/stream
body: none
ws {
url: {{wsBaseUrl}}/api/board/game/{{gameId}}/ws
body: ws
auth: none
}
headers {
Accept: application/x-ndjson
body:ws {
name: message 1
content: '''
{}
'''
}
vars:pre-request {
gameId: tjOgyEcS
gameId: uWm99efJ
}
+5 -1
View File
@@ -19,6 +19,10 @@ body:json {
{
"fen": "rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1",
"white": {"id": "p1", "displayName": "Alice"},
"black": {"id": "p2", "displayName": "Bob"}
"black": {"id": "p2", "displayName": "Bob"},
"timeControl": {
"limitSeconds": 300,
"incrementSeconds": 3
}
}
}
+1 -1
View File
@@ -11,5 +11,5 @@ post {
}
vars:pre-request {
gameId: tjOgyEcS
gameId: Yg200tOF
}
+1
View File
@@ -1,4 +1,5 @@
vars {
baseUrl: http://localhost:8080
wsBaseUrl: ws://localhost:8080
ioBaseUrl: http://localhost:8081
}