Skip to content

Instantly share code, notes, and snippets.

@lksnmnn
lksnmnn / TestBotListAllMoves.hs
Created January 29, 2016 12:31 — forked from mheinzel/TestBotListAllMoves.hs
Chess: FEN-Boards and possible moves
----------------------------------------------------------------------------
-- Test für die Funktion botListAllMoves :: String -> String -> [String]
--
-- Lizenz: MIT
-- Berlin, 25.01.2016
----------------------------------------------------------------------------
import Data.List (sort)
import ChessBot (botListAllMoves, botFindMove)
@lksnmnn
lksnmnn / FENBoard_Moves.hs
Created January 24, 2016 12:08
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
<html>
<head>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8' >
<title>Willkommens Nachricht</title>
</head>
<div style='background:#EDEDED;background-color:#EDEDED;padding:20px;' align='center'>
<table border='0' cellpadding='5px' cellspacing='2px' style='font-family: Segoe UI,Arial,Helvetica,sans-serif,Calibri;' width='600'>
<tbody>
<tr>
<td style='text-align:center;font-size:12px;color:#808080;'>