File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
plugin/src/main/kotlin/sc/plugin2024
sdk/src/main/server-api/sc/api/plugins Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ The version should always be in sync with the [GUI](https://github.com/software-
10
10
A ` y ` version of 0 marks the beta of the current year
11
11
and likely contains breaking changes between patches.
12
12
13
- ### 24.0.8 All The Moves - 2023-08-29
13
+ ### 24.0.9 All The Moves - 2023-09-XX
14
+ - Add a few helpers
15
+
16
+ ### 24.0.8 All The Moves - 2023-09-04
14
17
- moveIterator should now generate all possible Moves
15
18
- Reduce usage of magic numbers
16
19
- Fix some test cases and update kotest
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ data class Ship(
62
62
override fun clone (): Ship =
63
63
this .copy()
64
64
65
+ fun canTurn () = freeTurns > 0 || coal > 0
66
+
65
67
/* * Adjust speed and movement simultaneously. */
66
68
fun accelerateBy (diff : Int ) {
67
69
speed + = diff
Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ enum class Team(override val index: Int): ITeam {
8
8
ONE (0 ) {
9
9
override fun opponent (): Team = TWO
10
10
override val letter = ' R'
11
- override val color = " Rot "
11
+ override val color = " red "
12
12
},
13
13
14
14
TWO (1 ) {
15
15
override fun opponent (): Team = ONE
16
16
override val letter = ' B'
17
- override val color = " Blau "
17
+ override val color = " blue "
18
18
};
19
19
20
20
abstract val color: String
You can’t perform that action at this time.
0 commit comments