Home * Engines * Alice
Alice_in_Wonderland.jpg

Alice,
an experimental open source chess engine under the GNU General Public License written by Sven Reichard in C++, compliant with the Chess Engine Communication Protocol. Alice is an object oriented program developed under GCC and Linux. The board is a vector of 64 pointers to pieces, while piece is an abstract class, with intermediate subclasses for common piece properties such as sliding versus none sliding pieces, and finally instantiable subclasses for the concrete pieces, like Pawn, Rook, etc., and "null pieces" for the empty squares [1]. Jim Ablett provides recent compiles for 32/64-bit Windows and Linux [2].
Alice in Wonderland [3]

Bitboards

Alice is an object oriented Bitboard engine, applying Rotated Bitboards to determine sliding piece attacks. Size of of the encapsulated Bitboard class is 8 by unsigned long long number [4].
namespace Alice
{
  class BitboardIterator;
  class Bitboard
  {
  public:
    typedef BitboardIterator Iterator;
    Bitboard( unsigned long long n = 0ull);
    ~Bitboard();
    //operator unsigned long long() const;
    Bitboard& operator|=( const Bitboard& b );
    Bitboard& operator&=( const Bitboard& b );
    Bitboard operator~( ) const;
    ...
  private:
    unsigned long long number;
    static std::vector<unsigned long long> setMask;
    static std::vector<unsigned long long> clearMask;
    ...
    static Bitboard fileAttacks[256][64];
    static Bitboard rankAttacks[256][64] ;
    static Bitboard upDiagonalAttacks[256][64];
    static Bitboard downDiagonalAttacks[256][64] ;
    ...
  };
};

See also


Forum Posts


External Links

Chess Engine

Misc


References

  1. ^ Re: Gestatten: Alice by Sven Reichard, CCC, June 25, 2002
  2. ^ Re: Sorry guys, I have to ask for another engine: Alice by Jim Ablett, CCC, December 08, 2012
  3. ^ Jessie Willcox Smith's illustration of Alice surrounded by the characters of Wonderland. (1923), Alice's Adventures in Wonderland from Wikipedia
  4. ^ Index of /chess/engines/Jim Ablett/ALICE by Jim Ablett, hosted by Kirill Kryukov, Src/include/Bitboard.h
  5. ^ Lewis Carroll's diagram of the story as a chess game, Through the Looking-Glass - Chess
  6. ^ Glen Robert Downey (1998). The Truth About Pawn Promotion: The Development of the Chess Motif in Victorian Fiction. Ph.D. thesis, University of Victoria pdf » Promotions
  7. ^ Lewis Carroll's chess problem | ChessVibes, July 14, 2008

What links here?


Up one Level