Five professional shogi players lost Saturday to computer programs in a public competition, stunning the world of Japanese chess.