ander / passant

a small ruby lib for chess experiments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Passant
=======

A small ruby library for chess experiments.

Requires are relative to lib/ so you have to add it to your load path one way or another.

Examples
========

1) Running the UI (wxruby >= 2.0.0 required)

cd passant/lib
ruby -rubygems passant.rb


2) Running via irb under lib/

irb(main):001:0> require 'passant/game_board'
=> true
irb(main):002:0> b = Passant::GameBoard.new
=> 
rnbqkbnr
pppppppp
........
........
........
........
PPPPPPPP
RNBQKBNR
irb(main):003:0> b.move 'a4'
=> Pa2a4
irb(main):004:0> b
=> 
rnbqkbnr
pppppppp
........
........
P.......
........
.PPPPPPP
RNBQKBNR
irb(main):005:0> 

About

a small ruby lib for chess experiments

License:Other


Languages

Language:Ruby 100.0%