Skip to content

lyssphacker/paip-in-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Trying things out

chapter 18

Othello.scala

othello(adaptStrategy(human), adaptStrategy(human))

othello(minimaxSearcher(3, adaptEvalFn(countDifference)), adaptStrategy(maximizier(countDifference)))

othello(adaptStrategy(maximizier(weightedSquares)), adaptStrategy(maximizier(countDifference)))

othello(alphaBetaSearcher(6, adaptEvalFn(countDifference)), alphaBetaSearcher(4, adaptEvalFn(weightedSquares)))

randomOthelloSeries(
    alphaBetaSearcher(4, adaptEvalFn(weightedSquares)),
    randomStrategy,
    5)

randomOthelloSeries(
    minimaxSearcher(4, adaptEvalFn(weightedSquares)),
    randomStrategy,
    5)

randomOthelloSeries(
    adaptStrategy(maximizier(modifiedWeightedSquares)),
    randomStrategy,
    5)

roundRobin(
    List(adaptStrategy(maximizier(countDifference)), adaptStrategy(maximizier(mobility)),
    adaptStrategy(maximizier(weightedSquares)), adaptStrategy(maximizier(modifiedWeightedSquares)), randomStrategy), 5, 10,
    List("count-difference", "mobility", "weighted", "modified-weighted", "random"))

roundRobin(
    List(alphaBetaSearcher(4, adaptEvalFn(countDifference)), alphaBetaSearcher(4, adaptEvalFn(weightedSquares)),
    alphaBetaSearcher(4, adaptEvalFn(modifiedWeightedSquares)), randomStrategy), 5, 10,
    List("count-difference", "weighted", "modified-weighted", "random"))

roundRobin(
    List(adaptStrategy(maximizier(countDifference)),
    adaptStrategy(maximizier(weightedSquares)), adaptStrategy(maximizier(modifiedWeightedSquares)), randomStrategy), 5, 10,
    List("count-difference", "weighted", "modified-weighted", "random"))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages