123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- /* This file contains code for X-CHESS.
- Copyright (C) 1986 Free Software Foundation, Inc.
- This file is part of X-CHESS.
- X-CHESS is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY. No author or distributor
- accepts responsibility to anyone for the consequences of using it
- or for whether it serves any particular purpose or works at all,
- unless he says so in writing. Refer to the X-CHESS General Public
- License for full details.
- Everyone is granted permission to copy, modify and redistribute
- X-CHESS, but only under the conditions described in the
- X-CHESS General Public License. A copy of this license is
- supposed to have been given to you along with X-CHESS so you
- can know your rights and responsibilities. It should be in a
- file named COPYING. Among other things, the copyright notice
- and this notice must be preserved on all copies. */
- #define knight_mask_width 80
- #define knight_mask_height 80
- static short knight_mask_bits[] = {
- 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0007,
- 0x0000, 0x0000, 0x0000, 0x0000,
- 0x0007, 0x0000, 0x0000, 0x0000,
- 0x0000, 0x000f, 0x0000, 0x0000,
- 0x0000, 0x9c00, 0x000f, 0x0000,
- 0x0000, 0x0000, 0xbe00, 0x000f,
- 0x0000, 0x0000, 0x0000, 0xfe00,
- 0x001f, 0x0000, 0x0000, 0x0000,
- 0xfc00, 0x001f, 0x0000, 0x0000,
- 0x0000, 0xfc00, 0x007f, 0x0000,
- 0x0000, 0x0000, 0xf800, 0x01ff,
- 0x0000, 0x0000, 0x0000, 0xf800,
- 0x7fff, 0x0000, 0x0000, 0x0000,
- 0xf800, 0xffff, 0x0001, 0x0000,
- 0x0000, 0xf000, 0xffff, 0x0003,
- 0x0000, 0x0000, 0xf000, 0xffff,
- 0x001f, 0x0000, 0x0000, 0xfc00,
- 0xffff, 0x003f, 0x0000, 0x0000,
- 0xff80, 0xffff, 0x00ff, 0x0000,
- 0x0000, 0xffc0, 0xffff, 0x03ff,
- 0x0000, 0x0000, 0xfff0, 0xffff,
- 0x03ff, 0x0000, 0x0000, 0xfff8,
- 0xffff, 0x0fff, 0x0000, 0x0000,
- 0xfffc, 0xffff, 0x1fff, 0x0000,
- 0x0000, 0xfffe, 0xffff, 0x3fff,
- 0x0000, 0x8000, 0xffff, 0xffff,
- 0xffff, 0x0000, 0xc000, 0xffff,
- 0xffff, 0xffff, 0x0000, 0xe000,
- 0xffff, 0xffff, 0xffff, 0x0001,
- 0xf000, 0xffff, 0xffff, 0xffff,
- 0x0003, 0xf800, 0xffff, 0xffff,
- 0xffff, 0x0007, 0xfc00, 0xffff,
- 0xffff, 0xffff, 0x0007, 0xfe00,
- 0xffff, 0xffff, 0xffff, 0x000f,
- 0xfe00, 0xffff, 0xffff, 0xffff,
- 0x000f, 0xff00, 0xffff, 0xffff,
- 0xffff, 0x001f, 0xff80, 0xffff,
- 0xffff, 0xffff, 0x001f, 0xff80,
- 0xffff, 0xffff, 0xffff, 0x003f,
- 0xffc0, 0xffff, 0xffff, 0xffff,
- 0x003f, 0xffe0, 0xffff, 0xffff,
- 0xffff, 0x007f, 0xffe0, 0xffff,
- 0xffff, 0xffff, 0x007f, 0xfff0,
- 0xffff, 0xffff, 0xffff, 0x00ff,
- 0xfff0, 0xffff, 0xffff, 0xffff,
- 0x01ff, 0xfff8, 0xffff, 0xffff,
- 0xffff, 0x01ff, 0xfff8, 0xffff,
- 0xffc7, 0xffff, 0x01ff, 0xfffc,
- 0xffff, 0xffc1, 0xffff, 0x03ff,
- 0xfffc, 0x01ff, 0xffc0, 0xffff,
- 0x0fff, 0xfffc, 0x00ff, 0xffe0,
- 0xffff, 0x0fff, 0xfffc, 0x007f,
- 0xfff0, 0xffff, 0x0fff, 0xdffc,
- 0x003f, 0xfff8, 0xffff, 0x0fff,
- 0xeffc, 0x001f, 0xfff8, 0xffff,
- 0x1fff, 0xf7f8, 0x000f, 0xfffc,
- 0xffff, 0x1fff, 0xfbf8, 0x0007,
- 0xfffc, 0xffff, 0x1fff, 0xf9f0,
- 0x0003, 0xfffe, 0xffff, 0x1fff,
- 0xf800, 0x0001, 0xfffe, 0xffff,
- 0x1fff, 0xf800, 0x0000, 0xffff,
- 0xffff, 0x1fff, 0x0000, 0x8000,
- 0xffff, 0xffff, 0x1fff, 0x0000,
- 0xc000, 0xffff, 0xffff, 0x1fff,
- 0x0000, 0xe000, 0xffff, 0xffff,
- 0x1fff, 0x0000, 0xe000, 0xffff,
- 0xffff, 0x1fff, 0x0000, 0xf800,
- 0xffff, 0xffff, 0x7fff, 0x0000,
- 0xf800, 0xffff, 0xffff, 0x7fff,
- 0x0000, 0xfc00, 0xffff, 0xffff,
- 0x7fff, 0x0000, 0xfe00, 0xffff,
- 0xffff, 0x7fff, 0x0000, 0xff00,
- 0xffff, 0xffff, 0x7fff, 0x0000,
- 0xff00, 0xffff, 0xffff, 0x7fff,
- 0x0000, 0xff80, 0xffff, 0xffff,
- 0x7fff, 0x0000, 0xff80, 0xffff,
- 0xffff, 0x7fff, 0x0000, 0xffc0,
- 0xffff, 0xffff, 0x7fff, 0x0000,
- 0xffc0, 0xffff, 0xffff, 0x7fff,
- 0x0000, 0xffc0, 0xffff, 0xffff,
- 0x7fff, 0x0000, 0xffe0, 0xffff,
- 0xffff, 0x7fff, 0x0000, 0xfff0,
- 0xffff, 0xffff, 0x7fff, 0x0000,
- 0xfff0, 0xffff, 0xffff, 0x7fff,
- 0x0000, 0xfff8, 0xffff, 0xffff,
- 0x7fff, 0x0000, 0xfff8, 0xffff,
- 0xffff, 0x7fff, 0x0000, 0xfffc,
- 0xffff, 0xffff, 0x7fff, 0x0000,
- 0xfffe, 0xffff, 0xffff, 0x7fff,
- 0x0000, 0xfffe, 0xffff, 0xffff,
- 0x7fff, 0x0000, 0xffff, 0xffff,
- 0xffff, 0x7fff, 0x0000, 0xffff,
- 0xffff, 0xffff, 0x7fff, 0x0000,
- 0xffff, 0xffff, 0xffff, 0x7fff,
- 0x0000, 0xffff, 0xffff, 0xffff,
- 0x7fff, 0x0000, 0xffff, 0xffff,
- 0xffff, 0x7fff, 0x0000, 0xffff,
- 0xffff, 0xffff, 0x7fff, 0x0000,
- 0x0000, 0x0000, 0x0000, 0x0000};
|