Skip to content

Commit

Permalink
directly use Long for region masks
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jul 9, 2023
1 parent e21527a commit aef101c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/scala/Divider.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package chess

import cats.syntax.all.*
import bitboard.Bitboard
import bitboard.Bitboard.bb
import scala.annotation.switch

case class Division(middle: Option[Ply], end: Option[Ply], plies: Ply):
Expand Down Expand Up @@ -77,8 +76,8 @@ object Divider:

case _ => 0

private val mixednessRegions: List[(Bitboard, Int)] = {
val smallSquare = 0x0303L.bb
private val mixednessRegions: List[(Long, Int)] = {
val smallSquare = 0x0303L
for
y <- 0 to 6
x <- 0 to 6
Expand Down

0 comments on commit aef101c

Please sign in to comment.