Skip to content

Instantly share code, notes, and snippets.

@lksnmnn
Created January 24, 2016 12:08
Show Gist options
  • Save lksnmnn/15b7994448be8ade69cd to your computer and use it in GitHub Desktop.
Save lksnmnn/15b7994448be8ade69cd to your computer and use it in GitHub Desktop.
Chess: FEN-Boards and possible moves
----------------------------------------------------------------------------
-- Sammlung von validen FEN-Board Strings inklusiver Liste möglicher Züge
-- Zum Testen eines Bots in Haskell
--
-- Format:
-- Board: "rnbkqbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBKQBNR " "w"
-- Moves: ["h2 h4","h2 h3","g2 g4","g2 g3","f2 f4","f2 f3","e2 e4","e2 e3","d2 d4","d2 d3","c2 c4","c2 c3","b2 b4","b2 b3","a2 a4","a2 a3","g1 h3","g1 f3","b1 c3","b1 a3"]
--
-- Lizenz: MIT
-- Berlin, 24.01.2016
----------------------------------------------------------------------------
---------
-- Paul
---------
-- Board:
"rnbkqbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBKQBNR " "w"
-- Moves:
["h2 h4","h2 h3","g2 g4","g2 g3","f2 f4","f2 f3","e2 e4","e2 e3","d2 d4","d2 d3","c2 c4","c2 c3","b2 b4","b2 b3","a2 a4","a2 a3","g1 h3","g1 f3","b1 c3","b1 a3"]
@lksnmnn
Copy link
Author

lksnmnn commented Jan 27, 2016

@ravensinth:

Sind das die Ausgaben deines Bots oder hast du dir die Züge überlegt? Habe mal spontan dein letztes Board analysiert: "a7 a8" geht doch gar nicht ? Auf a7 steht doch gar keine weiße Figur? Ich erhalte für das Brett:

a4 b5
a4 b4
a4 a3
a4 a5
b3 d2
b3 c1
b3 a1
b3 d4
b3 c5
b3 a5
b2 d2
b2 c2
c4 e6
c4 d5
c4 f1
c4 e2
c4 d3
c4 a6
c4 b5
f7 g7
f7 a7
f7 b7
f7 c7
f7 d7
f7 e7
f7 f6
g0 h0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment