All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netsensia.rivalchess.consts.Bitboards.kt Maven / Gradle / Ivy

There is a newer version: 36.0.0
Show newest version
package com.netsensia.rivalchess.consts

const val FEN_START_POS = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"

const val BITBOARD_NONE = -1
const val BITBOARD_WP = 0
const val BITBOARD_WN = 1
const val BITBOARD_WB = 2
const val BITBOARD_WQ = 3
const val BITBOARD_WK = 4
const val BITBOARD_WR = 5
const val BITBOARD_BP = 6
const val BITBOARD_BN = 7
const val BITBOARD_BB = 8
const val BITBOARD_BQ = 9
const val BITBOARD_BK = 10
const val BITBOARD_BR = 11
const val BITBOARD_ALL = 12
const val BITBOARD_FRIENDLY = 13
const val BITBOARD_ENEMY = 14
const val BITBOARD_ENPASSANTSQUARE = 15
const val BITBOARD_COUNT = 16

val whiteBitboardTypes = intArrayOf(BITBOARD_WP, BITBOARD_WN, BITBOARD_WB, BITBOARD_WR, BITBOARD_WQ, BITBOARD_WK)
val blackBitboardTypes = intArrayOf(BITBOARD_BP, BITBOARD_BN, BITBOARD_BB, BITBOARD_BR, BITBOARD_BQ, BITBOARD_BK)
val allBitboardTypes = intArrayOf(BITBOARD_WP,BITBOARD_BP,BITBOARD_WN,BITBOARD_BN,BITBOARD_WB,BITBOARD_BB,
        BITBOARD_WR,BITBOARD_BR,BITBOARD_WQ,BITBOARD_BQ,BITBOARD_WK,BITBOARD_BK
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy