Skip to content

Commit 733a3e6

Browse files
committed
refactor(vier-gewinnt): Adjusted to connect 4
1 parent 60e807a commit 733a3e6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

games/vier-gewinnt/src/main/kotlin/sc/plugin2098/FieldState.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import sc.framework.DeepCloneable
1212
*/
1313
@XStreamAlias("field")
1414
enum class FieldState(): IField, DeepCloneable<FieldState> {
15-
RED,
16-
YELLOW,
15+
RED, // Team ONE
16+
YELLOW, // Team TWO
1717
EMPTY;
1818

1919
override fun deepCopy(): FieldState = this

games/vier-gewinnt/src/main/kotlin/sc/plugin2098/util/GamePlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ enum class Connect4WinReason(override val message: String, override val isRegula
2222
class GamePlugin: IGamePlugin<Move> {
2323
/** @suppress */
2424
companion object {
25-
const val PLUGIN_ID = "swc_2026_piranhas"
25+
const val PLUGIN_ID = "swc_2026_connect_4"
2626
val scoreDefinition: ScoreDefinition =
2727
ScoreDefinition(arrayOf(
2828
ScoreFragment("Siegpunkte", WinReason("%s hat gewonnen."), ScoreAggregation.SUM),
@@ -34,7 +34,7 @@ class GamePlugin: IGamePlugin<Move> {
3434
override val id = PLUGIN_ID
3535

3636
/** Anzeigename des Spiels. */
37-
override val name = "Piranhas"
37+
override val name = "4 Gewinnt!"
3838

3939
/** Definition der Wertung und Auswertung. */
4040
override val scoreDefinition =

0 commit comments

Comments
 (0)