epakskape / boneyard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boneyard is a simulation of the game 42 that challenges you to write the most effective AI for playing the game.

Usage

A sample round of boneyard can be played by running ruby -I. boneyard.rb. This round uses a simple sample bot for each player to demonstrate how a bot can be written.

$ ruby -I. boneyard.rb
boneyard.rb:130: warning: redefining `object_id' may cause serious problems
charlie: select suite 4 for count 4
trump is 4
charlie played 4/0
bravo played 4/2
alpha played 4/1
echo played 5/5
bravo played 3/6
alpha played 6/5
echo played 3/5
charlie played 3/3
charlie played 1/6
bravo played 1/0
alpha played 1/5
echo played 1/1
echo played 2/3
charlie played 2/0
bravo played 2/5
alpha played 2/6
alpha played 6/6
echo played 6/0
charlie played 4/6
bravo played 4/3
charlie played 0/5
bravo played 0/0
alpha played 2/2
echo played 0/3
bravo played 1/3
alpha played 4/5
echo played 1/2
charlie played 4/4
overall winner: bravo with 22 points (bid 5)

Playing a game as shown above will produce a game.xml in the current working directory. This captures each round of game play for review and analysis.

The game play XML can be converted to HTML using the boneyard.xsl stylesheet. For example, you can use ApplyXSLT to create an HTML report as shown:

ApplyXSLT.exe game.xml boneyard.xsl game.html

An example report can be found in sample_report.pdf

About


Languages

Language:Ruby 69.3%Language:XSLT 30.7%