Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fjdfhdjldj
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
fjdfhdjldj
9y ago
sorry for going off-topic but I couldn't shake out of the back of mind. you said "candidate may be on the spectrum", do you discriminate against people based on their medical conditions?
2.
▲
by
fjdfhdjldj
9y ago
for each type of piece if the bit is set, draw the piece at that position. if you click on a square and there is a piece in that square( there is a bit set in that position in any of the types), get the valid moves and draw them. if then yo
3.
▲
by
fjdfhdjldj
9y ago
why? the bitBoard describes the full game state, your renderer can use the data to draw the board for seamless decoupling. I don't see how the history would make any difference? bitshifting might be a bit hard for newer programmers bu
4.
▲
by
fjdfhdjldj
9y ago
why the onus is not on the interviewer? Why is he bringing up chess if he just wants OO answers? Aren't there better problems to pose more suited for testing OO knowledge? Bitboard is a standard way of writing chess engines. I think m
5.
▲
by
fjdfhdjldj
9y ago
but then why use OO? what does OO offer that this method does not? In fact one could argue that this method offers better decoupling since it separates the rendering from the game Data.