ANN: Pentago AI Player Testbench 0.3.5



Pentago is an easy to learn, fun, abstract strategy board game. See
http://www.pentago.se for more information. I bought the board game
just before Christmas 2005 and soon decided to write my own AI player.
The Pentago AI Player Testbench includes a game implementation and a
couple of test players (slump, adam, bertil, caesar and david).

There are a couple of different ways to use the testbench. It
(pentago.py) can run in singleplayer mode (sets up a game between a
player and every other registered AI player), tournament mode (sets up
games between all registered AI players) or in versus mode (sets up
games between two AI players)

There's also a pygame script (interactive.py) included which is rather
crude and should be considered a quick hack but which hopefully conveys
the general idea of how the game is played.

It's easy to write your own AI player. Write a player script with one
class (must be called "Player" and should have pentago.Player as it's
base class). The player object must implement at least two methods:
placeMarker() and rotateSquare(). placeMarker should return two integer
values x and y which are in range(6) and are used to position your
player's marker. rotateSquare should return a square index (in
range(4)) and a direction (in [-1, 1]). The square index indicates
which square should be rotated and a direction value of -1 indicates
counter clockwise rotation and 1 indicates clockwise. When you're done,
place the file in the players directory and test it with, for example:
[python] pentago.py --mode singleplayer --player <yourplayersfilename>

A zip with the source can be found at
http://www.pulp.se/johan/pentago/pentago-0.3.5.zip

BR
Johan Lindberg
johan@xxxxxxx

.



Relevant Pages

  • Poker Strategies Teil 1 Author Selzer-McKenzie
    ... Texas Hold’m Poker Secrets and Strategy ... deals around until each player has two cards face down. ... If there is more than one player left in the game at the end, ... The second round of betting (after the flop) is in units ...
    (de.etc.finanz.misc)
  • Top 100 NBA Players — Nos. 31-40
    ... defense and efficiency with the ball. ... but if a player gets them by chucking up contested 20- ... But the ranking makes sense when you consider Gasol?s stout defense and ... Consider also that Gasol raised his game in the playoffs (15.0 ...
    (alt.sports.basketball.nba.la-lakers)
  • Re: Play to Win - counter-intuitive example
    ... activities...Collusion to alter the results of a game". ... Since I really don't see what function it serves, given PTW, I'd say it should ... the rulebook when they're in conflict with the goals written in the rulebook." ... except to make sure no single player gains a second one to get a game win. ...
    (rec.games.trading-cards.jyhad)
  • Federer blog - February/March 2007 ...
    ... it's the greatest player of all time here". ... Pete, how's it going?" ... a huge weakness in my game as I always piss ... to play tight matches, due to ...
    (rec.sport.tennis)
  • Announcing: The annual Pre-Papa Flipoff in Fairfax, VA
    ... The annual Pre-Papa Flipoff, sponsored by FSPA, will be held at on ... direction and current game list. ... The tournament will be open for qualifying on Saturday ... that player and offer them A Division entries as a replacement. ...
    (rec.games.pinball)