chess4js 1.0.0-beta.9e → 1.0.0-beta.9f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/chess4js.d.mts +1 -1
- package/chess4js.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +18 -18
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -470,12 +470,12 @@ are two types: arena and swiss instances. Both are further detailed in the examp
|
|
|
470
470
|
|
|
471
471
|
#### Methods
|
|
472
472
|
|
|
473
|
-
| Method | Arguments
|
|
474
|
-
|
|
475
|
-
| `addPlayer` | `player`: `Player`
|
|
476
|
-
| `removePlayer` | `player`: `Player`
|
|
477
|
-
| `nextRound` | None
|
|
478
|
-
| `addMatch` | `white`: string, `black`: `Nullable<string>`, `outcome`: string, `id`: `Nullable<
|
|
473
|
+
| Method | Arguments | Return Type | Description |
|
|
474
|
+
|----------------|-------------------------------------------------------------------------------------------------------------------|------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
475
|
+
| `addPlayer` | `player`: `Player` | None | Adds a player to the tournament. Player's name most be unique. |
|
|
476
|
+
| `removePlayer` | `player`: `Player` | None | Removes a player from the tournament |
|
|
477
|
+
| `nextRound` | None | `ReadonlyArray<Match>` | Generates a list of new pairings. |
|
|
478
|
+
| `addMatch` | `white`: string, `black`: `Nullable<string>`, `outcome`: string, `id`: `Nullable<any>`, `round`: `Nullable<number>` | `boolean` | Adds a match to the tournament for the specified round. This method is ideal for cases where external logic is being used or an instance is being reconstructed. |
|
|
479
479
|
|
|
480
480
|
#### Factories
|
|
481
481
|
|
package/chess4js.d.mts
CHANGED
|
@@ -403,7 +403,7 @@ export declare class Tournament {
|
|
|
403
403
|
addPlayer(player: Player): void;
|
|
404
404
|
removePlayer(player: Player): void;
|
|
405
405
|
nextRound(): ReadonlyArray<Match>;
|
|
406
|
-
addMatch(white: string, black: Nullable<string>, outcome: string, id: Nullable<
|
|
406
|
+
addMatch(white: string, black: Nullable<string>, outcome: string, id: Nullable<any>, round: Nullable<number>): boolean;
|
|
407
407
|
}
|
|
408
408
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
409
409
|
export declare namespace Tournament.$metadata$ {
|