Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a small ruby lib for chess experiments
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
LICENSE
README
Rakefile

README

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> 
Something went wrong with that request. Please try again.