File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Scalatron/src/scalatron/botwar Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,10 +138,10 @@ object Bot {
138
138
139
139
def computeBotInputForMaster (bot : Bot , state : State ): String = {
140
140
val view = state.flattenedBoard.computeView(bot.pos, Constants .MasterHorizonHalfSize )
141
- computeControlFunctionInput(view)
141
+ computeControlFunctionInput(view, None )
142
142
}
143
143
144
- def computeControlFunctionInput (view : FlattenedBoard , maybeDeltaToMaster : Option [XY ] = None ): String = {
144
+ def computeControlFunctionInput (view : FlattenedBoard , deltaToMasterOpt : Option [XY ]): String = {
145
145
view.occlude() // caution: in situ!
146
146
val renderedView = view.cells.map(cell => Player .cellContentToChar(cell, bot) ).mkString
147
147
val stateMapString =
@@ -150,7 +150,7 @@ object Bot {
150
150
.map(entry => entry._1 + " =" + entry._2)
151
151
.mkString(" ," )
152
152
val maybeMasterParameter =
153
- maybeDeltaToMaster
153
+ deltaToMasterOpt
154
154
.map(Protocol .ServerOpcode .ParameterName .Master + " =" + _ + " ," )
155
155
.getOrElse(" " )
156
156
val controlFunctionInput =
You can’t perform that action at this time.
0 commit comments