I've previously asked people about bitboards, and how to implement them. But some seemed to advice me to not implement bitboards now. Some said to write upto the move generator, some said to implement bitboards in next version of my chess engine. But the logic was the same: To understand chess programming completely first and then go for bitbiards. Most of them advise to go for bitbiards but I'm still asking these question:
1) If I don't implement bitboards, is my engine gonna be slow?
2) Am I gonna face problems in the world of chess programming? ( there are many algorithm that demand bitboards)
3) Shoud I finally go for bitboards right now? ( my engine is 500 lines of code and supports move oarsing, fen, knight move gen..
Newbie to chess programming: should I go for bitboards?
Moderators: hgm, Rebel, chrisw
-
- Posts: 646
- Joined: Wed Jun 18, 2014 2:30 pm
- Full name: Fahad Syed
-
- Posts: 4833
- Joined: Sun Aug 10, 2008 3:15 pm
- Location: Philippines
Re: Newbie to chess programming: should I go for bitboards?
If you understand it now, go for it. If not continue with non-bitboard, you can always rewrite your program later.
-
- Posts: 646
- Joined: Wed Jun 18, 2014 2:30 pm
- Full name: Fahad Syed
Re: Newbie to chess programming: should I go for bitboards?
I understand what bitboards are, in fact I discovered bitboard system on my own but didn't apply it...Ferdy wrote:If you understand it now, go for it. If not continue with non-bitboard, you can always rewrite your program later.
-
- Posts: 4833
- Joined: Sun Aug 10, 2008 3:15 pm
- Location: Philippines
Re: Newbie to chess programming: should I go for bitboards?
So what exactly you are waiting .vittyvirus wrote:I understand what bitboards are, in fact I discovered bitboard system on my own but didn't apply it...Ferdy wrote:If you understand it now, go for it. If not continue with non-bitboard, you can always rewrite your program later.
-
- Posts: 1600
- Joined: Mon Feb 21, 2011 9:48 am
Re: Newbie to chess programming: should I go for bitboards?
Lose a little time with vice,vittyvirus wrote:I understand what bitboards are, in fact I discovered bitboard system on my own but didn't apply it...Ferdy wrote:If you understand it now, go for it. If not continue with non-bitboard, you can always rewrite your program later.
http://bluefever.net/Downloads/ViceReadMe.html
and
Watch videos are very instructive and entertained.
If you've seen, take another turn.
http://bluefever.net/Downloads/ViceReadMe.html
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: Newbie to chess programming: should I go for bitboards?
If you don't stop posting and start programming, you engine will be very slow. In fact, it won't exist at all.vittyvirus wrote:I've previously asked people about bitboards, and how to implement them. But some seemed to advice me to not implement bitboards now. Some said to write upto the move generator, some said to implement bitboards in next version of my chess engine. But the logic was the same: To understand chess programming completely first and then go for bitbiards. Most of them advise to go for bitbiards but I'm still asking these question:
1) If I don't implement bitboards, is my engine gonna be slow?
2) Am I gonna face problems in the world of chess programming? ( there are many algorithm that demand bitboards)
3) Shoud I finally go for bitboards right now? ( my engine is 500 lines of code and supports move oarsing, fen, knight move gen..
You've basically asked the same (hypothetical) questions for 2.5 weeks. Please, just choose a system for representing a chess position---any system---and write a move generator, ie, a function that gives all legal moves for any given position.
Let us know when you've got that finished.
-
- Posts: 892
- Joined: Sun Nov 19, 2006 9:16 pm
- Location: Russia
Re: Newbie to chess programming: should I go for bitboards?
1) Programming is art of rewriting, so you can start with anything and end with good code.
2) I doubt you will be able to finish complete a chess program without experience of writing another programs.
3) You cannot create a fast program without writing the first (awful) chess program.
2) I doubt you will be able to finish complete a chess program without experience of writing another programs.
3) You cannot create a fast program without writing the first (awful) chess program.
-
- Posts: 83
- Joined: Mon Mar 24, 2014 12:26 am
- Location: Glen Carbon, IL USA
Re: Newbie to chess programming: should I go for bitboards?
This...A thousand times this...I learned about chess programming from this series of videos...Very informative.velmarin wrote:Lose a little time with vice,vittyvirus wrote:I understand what bitboards are, in fact I discovered bitboard system on my own but didn't apply it...Ferdy wrote:If you understand it now, go for it. If not continue with non-bitboard, you can always rewrite your program later.
http://bluefever.net/Downloads/ViceReadMe.html
and
Watch videos are very instructive and entertained.
If you've seen, take another turn.
http://bluefever.net/Downloads/ViceReadMe.html
Jeff
-
- Posts: 646
- Joined: Wed Jun 18, 2014 2:30 pm
- Full name: Fahad Syed
Re: Newbie to chess programming: should I go for bitboards?
What exactly do you mean?Aleks Peshkov wrote:
2) I doubt you will be able to finish complete a chess program without experience of writing another programs.
-
- Posts: 490
- Joined: Tue Feb 04, 2014 12:25 pm
- Full name: Colin Jenkins
Re: Newbie to chess programming: should I go for bitboards?
Think iterative deepening...vittyvirus wrote:What exactly do you mean?Aleks Peshkov wrote:
2) I doubt you will be able to finish complete a chess program without experience of writing another programs.