More random games

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

More random games

Post by sje »

I've added a command to the soon-to-be-released BozoChess to generate a file of random PGN games. The output is improved over the random game files I produced a few weeks ago:

1) The "Date" PGN tag now has the date of generation.

2) The "Round" PGN tag now has the game ordinal.

3) The "Result" PGN tag is generated according to the priority order (checkmate, stalemate, fiftymoves, insufficient, repetition).

4) The "EndFEN" PGN tag is now present and has the game's terminal FEN.

5) The "Termination" PGN tag is now present and gives the reason for game termination.

6) The "PlyCount" PGN tag is present and gives the game's ply count.

The PGN files I've produced can be found at https://public.me.com/chessnotation in the directory BozoRandomGames. Note that the average PGN game byte count is a little over two KB. You can get the games now, or you can wait a few days and get the program which generated them.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Game counts

Post by sje »

The random game files have different game counts: (1 10 100 1,000 10,000, 100,000). Later today I'll have the largest and last file with 1,000,000 random games and it will be slightly over 2 GB in length. These files will stay in place for at least a few weeks, but are doomed as Apple will be killing its MobileMe hosting features.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

The longest game

Post by sje »

The longest game seen in the million random game run:

Code: Select all

[Event "Random Game"]
[Site "Unknown site"]
[Date "2011.10.28"]
[Round "645397"]
[White "Random player"]
[Black "Random player"]
[Result "1/2-1/2"]
[EndFEN "1K6/8/8/8/R7/8/2k5/8 b - - 100 510"]
[Termination "FiftyMoves"]
[PlyCount "1019"]

1 g3 c5 2 b3 g5 3 Nh3 b6 4 b4 d5 5 e3 Kd7 6 Qh5 Nf6 7 Qg6 a6 8 d3 Bg7 9 Bg2 Ra7 10 b5 c4 11 bxa6 g4
12 e4 Ng8 13 Rf1 Rb7 14 e5 Nxa6 15 Ke2 Nc5 16 Na3 Ne6 17 Qf6 Kc7 18 Ke1 Bd7 19 Nxc4 Qa8 20 Nxb6 Qa7
21 c3 Qa8 22 Be4 Bc8 23 Rb1 Nh6 24 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