ChipTest

From Chessprogramming wiki
Jump to: navigation, search

Home * Engines * ChipTest

ChipTest,
a chess program running on a Sun-3 workstation using a high speed move generator in hardware. It was the predecessor of Deep Thought, which later emerged to Deep Blue. The project started in 1985 by two students at Carnegie Mellon University, Feng-hsiung Hsu who did the chip design of the move generator [1], and Thomas Anantharaman. Later in 1986 they were joined by HiTech member Murray Campbell. ChipTest played two ACM North American Computer Chess Championships, ACM 1986 and ACM 1987, and it won the latter with a perfect score. At ACM 1986, ChipTest searched about 100K positions per second [2], in 1987 500K [3], already employing singular extensions [4].

Move Generation

The move generator, a combinational logic 8x8 array is effectively a silicon chessboard in VLSI design. The basic move generation algorithm is the same as in the Belle move generator, where a disable-stack implements the bookkeeping of victims and per victim, of aggressors. In ChipTest and its successors, the last move searched from the position, which need to be stored for unmake move anyway, implies the priority levels of the last victim and the last attacking piece is used for the sequential logic to compute the disable-mask on the fly, using distinct square priorities to discriminate equal valued victims and aggressors [5] [6].

disable = 0;
while ( ( to = findMVV(disable)) >= 0 ) {
  while ( ( from = findLVA(disable)) >= 0 ) {
    make(from, to); 
    ....
    unmake(from, to); 
    disable = allLessAndEqualValuableAttackers(from); 
  }
  disable = allMoreAndEqualValuableVictims(to);
}

In software, the cost of recomputing the mask exceeds the cost of retrieving it. But in hardware, the reverse holds true. The disable-stack needs decoders to operate anyway. The modified decoder operates at a speed comparable to the disable-stack decoders and takes less space. This method avoids using the disable-stack, which probably needs to be at least 64 levels deep.

Evaluation

While features such as material, piece placement, and some pawn structures are easier to evaluate in an incremental way, certain more subtle features require a whole board approach to do the evaluation in hardware - aggregated square control aka mobility of a Chess 4.5 like approach [7], and pins [8].

Selected Games

Bebe

ACM 1986, round 1, Bebe - ChipTest

[Event "ACM 1986"]
[Site "Dallas USA"]
[Date "1986.11.02"]
[Round "1"]
[White "Bebe"]
[Black "Chiptest"]
[Result "1-0"]

1.e4 e6 2.d4 d5 3.Nd2 dxe4 4.Nxe4 Qd5 5.Nc3 Bb4 6.Nge2 Qd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d7 15.Rd1 Ba4 16.Re1 Nd7 17.Bd5 Nc5 18.Nxe4 Nd3 19.Re2 Bc6
20.Bxc6 Nxc1 21.Rxc1 bxc6 22.Nc5 Bf4 23.Rce1 Rfb8 24.g3 Bd6 25.Ne4 
Bc7 26.f4 Rd8 27.Kg2 Rd5 28.c4 Rd4 29.c5 Ba5 30.Rf1 Rad8 31.Rff2 Bb4 
32.a3 Ba5 33.Ng5 Re8 34.f5 Rd3 35.fxg6 fxg6 36.Nf3 Bc7 37.Re6 Bb8 
38.Rxc6 Re3 39.g4 e5 40.Ng5 Rb3 41.Re6 Rxe6 42.Nxe6 h5 43.c6 e4 
44.c7 Bxc7 45.Nxc7 1-0

See also

Publications

External Links

References

  1. Feng-hsiung Hsu (1987). A Two-Million Moves/Sec CMOS Single-Chip Chess Move Generator. IEEE Journal of Solid-state Circuits, Vol. 22, No. 5
  2. The ACM's Seventeenth North American Computer Chess Championship and The Sixth World Microcomputer Chess Championship from The Computer History Museum, pdf
  3. The ACM's Eighteenth North American Computer Chess Championship from The Computer History Museum, pdf
  4. Thomas Anantharaman, Murray Campbell, Feng-hsiung Hsu (1988). Singular extensions: Adding Selectivity to Brute-Force Searching. AAAI Spring Symposium, Computer Game Playing, pp. 8-13. Also published in ICCA Journal, Vol. 11, No. 4, republished (1990) in Artificial Intelligence, Vol. 43, No. 1
  5. Feng-hsiung Hsu (1986). Two designs of functional units for VLSI based chess machines. Carnegie Mellon University, Computer Science Department. Paper 1566
  6. Feng-hsiung Hsu (1999). IBM’s Deep Blue Chess Grandmaster Chips. IEEE Micro, Vol. 19, No. 2
  7. David Slate, Larry Atkin (1977). Chess 4.5 - The Northwestern University Chess Program. Chess Skill in Man and Machine, reprinted (1988) in Computer Chess Compendium
  8. Feng-hsiung Hsu (1986). Two designs of functional units for VLSI based chess machines. Carnegie Mellon University, Computer Science Department. Paper 1566.
  9. Monty Newborn, Danny Kopec (1988). Results of ACM's Eighteenth Computer Chess Championship. Communications of the ACM, Vol. 31, No. 8, pdf

Up one Level