File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
core/src/main/scala/bitboard Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ object Bitboard:
3434 extension (s : Square )
3535
3636 def bishopAttacks (occupied : Bitboard ): Bitboard =
37- ATTACKS (Magic .BISHOP (s.value).bitshopIndex (occupied))
37+ ATTACKS (Magic .BISHOP (s.value).bishopIndex (occupied))
3838
3939 def rookAttacks (occupied : Bitboard ): Bitboard =
4040 ATTACKS (Magic .ROOK (s.value).rookIndex(occupied))
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ package bitboard
44import scala .annotation .static
55
66class Magic (val mask : Long , val factor : Long , val offset : Int ):
7- def bitshopIndex (occupied : Long ): Int = (factor * (occupied & mask) >>> (64 - 9 )).toInt + offset
8- def rookIndex (occupied : Long ): Int = (factor * (occupied & mask) >>> (64 - 12 )).toInt + offset
7+ def bishopIndex (occupied : Long ): Int = (factor * (occupied & mask) >>> (64 - 9 )).toInt + offset
8+ def rookIndex (occupied : Long ): Int = (factor * (occupied & mask) >>> (64 - 12 )).toInt + offset
99
1010object Magic :
1111 @ static
You can’t perform that action at this time.
0 commit comments