yp-edu/gpt2-stockfish-debug
Text Generation
•
Updated
•
15
•
1
fen
stringlengths 29
78
| move
stringlengths 4
5
| result
stringclasses 4
values |
---|---|---|
rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 | g1f3 | 1/2-1/2 |
rnbqkbnr/pppppppp/8/8/8/5N2/PPPPPPPP/RNBQKB1R b KQkq - 1 1 | d7d5 | 1/2-1/2 |
rnbqkbnr/ppp1pppp/8/3p4/8/5N2/PPPPPPPP/RNBQKB1R w KQkq - 0 2 | d2d4 | 1/2-1/2 |
rnbqkbnr/ppp1pppp/8/3p4/3P4/5N2/PPP1PPPP/RNBQKB1R b KQkq - 0 2 | g8f6 | 1/2-1/2 |
rnbqkb1r/ppp1pppp/5n2/3p4/3P4/5N2/PPP1PPPP/RNBQKB1R w KQkq - 1 3 | c1f4 | 1/2-1/2 |
rnbqkb1r/ppp1pppp/5n2/3p4/3P1B2/5N2/PPP1PPPP/RN1QKB1R b KQkq - 2 3 | c8f5 | 1/2-1/2 |
rn1qkb1r/ppp1pppp/5n2/3p1b2/3P1B2/5N2/PPP1PPPP/RN1QKB1R w KQkq - 3 4 | e2e3 | 1/2-1/2 |
rn1qkb1r/ppp1pppp/5n2/3p1b2/3P1B2/4PN2/PPP2PPP/RN1QKB1R b KQkq - 0 4 | e7e6 | 1/2-1/2 |
rn1qkb1r/ppp2ppp/4pn2/3p1b2/3P1B2/4PN2/PPP2PPP/RN1QKB1R w KQkq - 0 5 | f3h4 | 1/2-1/2 |
rn1qkb1r/ppp2ppp/4pn2/3p1b2/3P1B1N/4P3/PPP2PPP/RN1QKB1R b KQkq - 1 5 | f8d6 | 1/2-1/2 |
rn1qk2r/ppp2ppp/3bpn2/3p1b2/3P1B1N/4P3/PPP2PPP/RN1QKB1R w KQkq - 2 6 | h4f5 | 1/2-1/2 |
rn1qk2r/ppp2ppp/3bpn2/3p1N2/3P1B2/4P3/PPP2PPP/RN1QKB1R b KQkq - 0 6 | e6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n/4K3 b - - 11 48 | b6b5 | 1/2-1/2 |
8/8/8/pk6/3Q4/1P2P1Pp/P4Pqn/4K3 w - - 12 49 | d4e5 | 1/2-1/2 |
8/8/8/pk2Q3/8/1P2P1Pp/P4Pqn/4K3 b - - 13 49 | b5c6 | 1/2-1/2 |
8/8/2k5/p3Q3/8/1P2P1Pp/P4Pqn/4K3 w - - 14 50 | e5c3 | 1/2-1/2 |
8/8/2k5/p7/8/1PQ1P1Pp/P4Pqn/4K3 b - - 15 50 | c6b5 | 1/2-1/2 |
See my blog post for additional details.
The datase contain the following columns:
"-"
for unfinished games).Pre-processing of the Stockfish games provided by BlueSunflower/chess_games_base.
Code used:
import jsonlines
import chess
import tqdm
def preprocess_games(in_path, out_path):
with jsonlines.open(in_path) as reader:
with jsonlines.open(out_path, "w") as writer:
for obj in tqdm.tqdm(reader):
state_action = []
parsed_moves = [m for m in obj["moves"].split() if not m.endswith(".")]
board = chess.Board()
for m in parsed_moves:
fen = board.fen()
move = board.push_san(m)
state_action.append({"fen": fen, "move":move.uci()})
outcome = board.outcome()
if outcome is None:
result = "-"
else:
result = outcome.result()
writer.write_all([
{**sa, "result":result} for sa in state_action
])
Using basic dataset
code:
from datasets import load_dataset
dataset = load_dataset("yp-edu/stockfish-debug")