From Chessprogramming wiki
Jump to: navigation, search

Home * Engines * Hannibal

Hannibal crossing the Alps [1]

an UCI compliant chess engine developed by Sam Hamilton and Edsel Apostol, supported by Audy Arandela in testing and maintaining the opening book. They share the common goal to make Hannibal as strong as possible. As of now, they are working on the tactical weakness, due to Edsel's non-conventional aggressive pruning methods, and the holes in the evaluation function [2]. Edsel will be working on SMP search [3], while Sam will be in charge of writing code to tune the parameters automatically.

Hannibal incorporates ideas from their authors earlier engines LearningLemming and Twisted Logic. It uses alpha-beta, enhanced with various chess specific heuristics, and relies on a very selective search, endgame knowledge, and an understanding of material imbalances [4]. Bitboards are the basic data structure used to represent the board and to generate moves.


Hannibal, from Phoenician hann - "grace" and baal - "master" or "lord", meaning “mercy of (the god) Ba'al[5], was a Carthaginian general who fought the Roman Republic in the Second Punic War.

Tournament Play

Hannibal played the CCT12, WCRCC 2010, WCRCC 2011, and the ACCA 2011 online tournaments.

Selected Games

CCT12, round 5, Hannibal - Shredder [6]

[Event "CCT12"]
[Site "FICS"]
[Date "2010.02.20"]
[Round "5"]
[White "Hannibal"]
[Black "Shredder"]
[Result "1/2-1/2"]

1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O d6 6.Re1 Be7 7.c3 Bd7 8.d4 O-O 
9.Nbd2 exd4 10.cxd4 Nb4 11.Bxd7 Qxd7 12.Qb3 a5 13.a3 Na6 14.Qc2 h6 15.Nc4 
a4 16.Bd2 d5 17.exd5 Nxd5 18.b3 c5 19.bxa4 cxd4 20.Nce5 Qc7 21.Qe4 Qd8 
22.Qg4 Nc5 23.Bxh6 Bf6 24.Rac1 Nc3 25.Bg5 Rxa4 26.Bxf6 Qxf6 27.Nxd4 Rd8 
28.Rxc3 Raxd4 29.Qh5 Re4 30.Rce3 Rxe3 31.Rxe3 Qf5 32.g4 Qxh5 33.gxh5 Rd5 
34.Nc4 Rg5+ 35.Kh1 Rxh5 36.Re8+ Kh7 37.Nd6 Kg6 38.Re7 Rh3 39.Rxf7 Rd3 40.Rc7 
Ne6 41.Rd7 Kh5 42.h4 Kg4 43.Nf7 Rxd7 44.Ne5+ Kxh4 45.Nxd7 Nf4 46.Nc5 b6 
47.Nb3 Nd3 48.Kg2 Kg4 49.a4 Kf4 50.a5 bxa5 51.Nxa5 Ke4 1/2-1/2

See also

Forum Posts

2010 ...

2015 ...

External Links

Chess Engine


feat. Kenny Garrett, Bobby Irving, Adam Holzman, Benjamin Rietveld, Joe "Foley" McCreary, Marilyn Mazur, Ricky Wellman


Up one Level