Games::Euchre

Games::Euchre is an Euchre card game for humans and computers.
Download

Games::Euchre Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Chris Dolan
  • Publisher web site:
  • http://search.cpan.org/~cdolan/

Games::Euchre Tags


Games::Euchre Description

Games::Euchre is an Euchre card game for humans and computers. Games::Euchre is an Euchre card game for humans and computers.SYNOPSISSimply run my game wrapper: % euchre.plor write your own: use Games::Euchre; use Games::Euchre::AI::Simple; use Games::Euchre::AI::Human; my $game = Games::Euchre->new(); foreach my $i (1..3) { $game->setAI($i, Games::Euchre::AI::Simple->new()); } $game->setAI(4, Games::Euchre::AI::Human->new()); $game->playGame(); my @scores = sort {$b $a} $game->getScores(); print("The winner is " . $game->getWinner()->getName() . " with a score of " . "$scores to $scoresn");This software implements the card game of Euchre. The game is played with four players composing two teams. Any of the four players can be human or computer players, but more than one human is not well supported yet.The Games::Euchre::AI module implements a simple framework for adding new classes of human interfaces or computer opponents. I recomment that AI writers use Games::Euchre::AI::Simple (a REALLY dumb computer opponent) as starting point.Aside from the ::AI class and its descendents, this package also implements the following classes: Games::Euchre::Team, Games::Euchre::Player and Games::Euchre::Trick. Requirements: · Perl


Games::Euchre Related Software