ChessUSA.com TalkChess.com
Hosted by Your Move Chess & Games
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Random value compute or table hard coded ?
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Vincent Diepeveen



Joined: 09 Mar 2006
Posts: 1738
Location: The Netherlands

PostPost subject: Re: Random value compute or table hard coded ?    Posted: Wed Jul 11, 2012 7:40 pm Reply to topic Reply with quote

zongli wrote:
Well, if castling rights are stored as 4 bits, you can just XOR it out, update it, and XOR it back in. Hence 16 random numbers.


that requires code special for white and for black.
I dislike that.

Personally i prefer generic code that works for both sides, wherever it is possible...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Subject Author Date/Time
Random value compute or table hard coded ? Yves Catineau Tue Jul 10, 2012 7:41 pm
      Re: Random value compute or table hard coded ? Ronald de Man Tue Jul 10, 2012 7:54 pm
      Re: Random value compute or table hard coded ? Sven Schüle Tue Jul 10, 2012 9:02 pm
            Re: Random value compute or table hard coded ? Yves Catineau Wed Jul 11, 2012 6:24 pm
                  Re: Random value compute or table hard coded ? Zong Li Wed Jul 11, 2012 6:27 pm
                        Re: Random value compute or table hard coded ? Yves Catineau Wed Jul 11, 2012 6:49 pm
                  Re: Random value compute or table hard coded ? Rémi Coulom Wed Jul 11, 2012 6:34 pm
                        Re: Random value compute or table hard coded ? Yves Catineau Wed Jul 11, 2012 6:50 pm
                              Re: Random value compute or table hard coded ? Zong Li Wed Jul 11, 2012 6:58 pm
                                    Re: Random value compute or table hard coded ? H.G.Muller Wed Jul 11, 2012 7:15 pm
                                          Re: Random value compute or table hard coded ? Yves Catineau Wed Jul 11, 2012 7:26 pm
                                                Re: Random value compute or table hard coded ? Vincent Diepeveen Wed Jul 11, 2012 7:28 pm
                                                      Re: Random value compute or table hard coded ? Yves Catineau Wed Jul 11, 2012 7:31 pm
                                                            Re: Random value compute or table hard coded ? Vincent Diepeveen Wed Jul 11, 2012 7:32 pm
                                                                  Re: Random value compute or table hard coded ? Yves Catineau Wed Jul 11, 2012 7:34 pm
                                                                  Re: Random value compute or table hard coded ? Zong Li Wed Jul 11, 2012 7:36 pm
                                                                        Re: Random value compute or table hard coded ? Vincent Diepeveen Wed Jul 11, 2012 7:40 pm
                                                                              Re: Random value compute or table hard coded ? Zong Li Wed Jul 11, 2012 7:44 pm
                                                                                    Re: Random value compute or table hard coded ? Vincent Diepeveen Wed Jul 11, 2012 7:56 pm
                                                      Re: Random value compute or table hard coded ? Ronald de Man Wed Jul 11, 2012 7:46 pm
                                                            Re: Random value compute or table hard coded ? Vincent Diepeveen Wed Jul 11, 2012 7:52 pm
                                                                  Re: Random value compute or table hard coded ? Ronald de Man Wed Jul 11, 2012 8:32 pm
                                                                        Re: Random value compute or table hard coded ? H.G.Muller Wed Jul 11, 2012 9:35 pm
                                          Re: Random value compute or table hard coded ? Zong Li Wed Jul 11, 2012 7:26 pm
                                                Re: Random value compute or table hard coded ? Vincent Diepeveen Wed Jul 11, 2012 7:30 pm
                                    Re: Random value compute or table hard coded ? Daniel Shawul Wed Jul 11, 2012 7:37 pm
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2001, 2005 phpBB Group
Enhanced with Moby Threads