5 # Play one move of a Cartagena game
9 # Game state file read on STDIN
10 # Move produced on STDOUT
16 # To change this template, choose Tools | Templates
17 # and open the template in the editor.
20 require 'libcartagena'
24 game
, moves
= Game
.read_game(gamelines
)
25 move
= game
.possible_moves
[0]
26 puts move
.format(game
.board
, true)