File: MOVES

package info (click to toggle)
xpat2 1.07-18
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,440 kB
  • sloc: ansic: 13,770; perl: 3,068; cpp: 2,935; makefile: 190; sh: 32
file content (13 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
Bits  0- 8: srcind  9 bit, 0-511
Bits  9-14: dstpile 6 bit, 0- 63
Bit     15: move turned a card in a slot
Bit  16-31: same for inverse move

NO_MOVE:	0xffffffffUL
new cards:	0xffff8000UL + number of cards (0-63)
begin compound:	0xffff9000UL
end compound:	0xffff9001UL

impossible combinations:
Both bit 31 and bit 15 set (=> new cards)
srcpile and dstpile have same index => rotate slot