Skip to content

Commit 20d2e6a

Browse files
committed
reformatting
1 parent 0f3efe4 commit 20d2e6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/scala/aima/core/search/adversarial/Game.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package aima.core.search.adversarial
22

3-
43
final case class UtilityValue(value: Double) extends AnyVal {
54
def <(that: UtilityValue) = if (this.value < that.value) true else false
65
def >(that: UtilityValue) = if (this.value > that.value) true else false
76

87
}
98

10-
119
/**
1210
* @author Aditya Lahiri
1311
* @author Shawn Garner

core/src/main/scala/aima/core/search/adversarial/MinimaxSearch.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import scala.annotation.tailrec
77
* @author Shawn Garner
88
*/
99
object MinimaxDecision {
10-
def minMaxDecision[PLAYER, STATE, ACTION](g: Game[PLAYER, STATE, ACTION],
11-
noAction: ACTION): (STATE, PLAYER) => ACTION = { (s: STATE, p: PLAYER) =>
10+
def minMaxDecision[PLAYER, STATE, ACTION](
11+
g: Game[PLAYER, STATE, ACTION],
12+
noAction: ACTION
13+
): (STATE, PLAYER) => ACTION = { (s: STATE, p: PLAYER) =>
1214
@tailrec def maxMinValue(Actions: List[ACTION], p: PLAYER): ACTION = Actions match {
1315
case Nil => noAction
1416
case a :: Nil => a

0 commit comments

Comments
 (0)