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 

Stockfish 2.2 IOS source
Post new topic    TalkChess.com Forum Index -> Computer Chess Club: Programming and Technical Discussions Flat
View previous topic :: View next topic  
Author Message
Ted Wong



Joined: 01 Nov 2010
Posts: 245

PostPost subject: Re: Stockfish 2.2 IOS source    Posted: Mon Mar 26, 2012 2:42 am Reply to topic Reply with quote

The Engine folder has the sources for the actual chess engine. Inside it has iphone.mm, which is where you need to look at. In the iOS version, the interface doesn't send the UCI command via process piping, the commands are saved in internal queues defined in EngineController.mm as "commandQueue". The commands are passed to command_to_engine in iphone.mm which directs the inputs to the engine.

The Chess folder has the bitboard implementation. This is necessary for checking invalid moves attempted by the user without sending an illegal move to the engine.

In order for the latest SF to work, actually for any kind of UCI engine to work. You just need to copy the latest SF sources into the Engine folder. Make sure that the handleCommand() function in the new sources are still there. Also make sure when the engine outputs UCI command, you replace the code with making a call to iphone.mm.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Subject Author Date/Time
Stockfish 2.2 IOS source David Whitten Thu Mar 22, 2012 6:30 am
      Re: Stockfish 2.2 IOS source David Whitten Sat Mar 24, 2012 2:00 pm
            Re: Stockfish 2.2 IOS source Eelco de Groot Sat Mar 24, 2012 2:21 pm
                  Re: Stockfish 2.2 IOS source Eelco de Groot Sat Mar 24, 2012 2:40 pm
      Re: Stockfish 2.2 IOS source David Whitten Sun Mar 25, 2012 3:52 pm
            Re: Stockfish 2.2 IOS source Ted Wong Sun Mar 25, 2012 4:01 pm
                  Re: Stockfish 2.2 IOS source David Whitten Sun Mar 25, 2012 5:31 pm
                        Re: Stockfish 2.2 IOS source Ted Wong Mon Mar 26, 2012 12:53 am
                              Re: Stockfish 2.2 IOS source David Whitten Mon Mar 26, 2012 2:19 am
                                    Re: Stockfish 2.2 IOS source Ted Wong Mon Mar 26, 2012 2:42 am
                                          Re: Stockfish 2.2 IOS source David Whitten Mon Mar 26, 2012 3:19 am
                                                Re: Stockfish 2.2 IOS source Ted Wong Mon Mar 26, 2012 3:25 am
                                                      Re: Stockfish 2.2 IOS source David Whitten Mon Mar 26, 2012 3:36 am
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