bitboard Questions

4

Solved

In many board games (like checkers, go and othello/reversi) each square can be represented by three states: white, black or empty. 8x8 boards in such game engines are usually represented as two bi...
Axletree asked 10/12, 2018 at 14:53

9

Solved

OK, let's consider a 64-bit number, with its bits forming a 8x8 table. E.g. 0 1 1 0 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 0 1 0 0 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0 0 1 1 0 1 1 1 0 0 1...
Corvus asked 26/1, 2013 at 14:25

1

Solved

My brain is smoking trying to understand the mechanics of this bitboard technique. In order to make it simple, lets imagine that, instead of chess and a lot of complex piece movements, we have a ga...
Eidson asked 2/8, 2016 at 18:51

3

Solved

This is a question regarding the big picture of how to validate a sliding piece move in chess using magic bitboards. Just to clarify, I am not asking how magic bitboards work internally. Now, some...
Rettke asked 4/6, 2013 at 18:42

3

Solved

I'm trying to deal with bitboards, which requires me to set a particular bit in a 64-bit unsigned integer. To set bit i, I perform a bitwise OR with the bitboard in question, with a left shifted nu...
Randy asked 11/6, 2015 at 9:55

2

Solved

I'm looking to create a basic chess (or failing that, checkers/draughts) engine. After researching the topic I'm fairly confident that I want to use a series of bitboards. I understand the concept ...
Peristalsis asked 15/8, 2014 at 7:10

2

Solved

I have a bitboard and I want to check in C if there is ONLY one bit set to 1. #include <stdint.h> typedef uint64_t bboard; bboard b = 0x0000000000000010; if (only_one_bit_set_to_one (b...
Ruthenium asked 18/9, 2012 at 19:38
1

© 2022 - 2024 — McMap. All rights reserved.