5 # Play one move of a Trap the Cap game
9 # Game state file read on STDIN
10 # Move produced on STDOUT
17 require 'libttc-pplayer'
21 # Get the current game state
22 game_lines
= readlines
23 game
, moves
, next_roll
= Game
.read_game(game_lines
)
24 game
.apply_moves
! moves
26 player
= Potential_player
.new({:friend_pull => 0.0,
32 best_move
= player
.best_move(game
, next_roll
)