1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

Add p5-Games-AlphaBeta 0.4.5, game-tree search with object oriented

interface.

PR:		ports/84165
Submitted by:	Aaron Dalton <aaron@daltons.ca>
This commit is contained in:
Renato Botelho 2005-08-31 11:50:26 +00:00
parent baf95d8d2d
commit 341645c901
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=141564
5 changed files with 55 additions and 0 deletions

View File

@ -374,6 +374,7 @@
SUBDIR += openmortal
SUBDIR += openttd
SUBDIR += orbital_eunuchs_sniper
SUBDIR += p5-Games-AlphaBeta
SUBDIR += p5-Games-Bingo
SUBDIR += p5-Games-Bingo-Bot
SUBDIR += p5-Games-Bingo-Print

View File

@ -0,0 +1,26 @@
# New ports collection makefile for: p5-Games-AlphaBeta
# Date created: 27 July 2005
# Whom: Aaron Dalton <aaron@daltons.ca>
#
# $FreeBSD$
#
PORTNAME= Games-AlphaBeta
PORTVERSION= 0.4.5
CATEGORIES= games perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Games
PKGNAMEPREFIX= p5-
MAINTAINER= aaron@daltons.ca
COMMENT= Game-tree search with object oriented interface
BUILD_DEPENDS= ${SITE_PERL}/Games/Sequential.pm:${PORTSDIR}/games/p5-Games-Sequential
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Games::AlphaBeta.3 Games::AlphaBeta::Position.3 \
Games::AlphaBeta::Reversi.3
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
MD5 (Games-AlphaBeta-0.4.5.tar.gz) = a6a6b18960cced47f12747e26dd18271
SIZE (Games-AlphaBeta-0.4.5.tar.gz) = 8952

View File

@ -0,0 +1,18 @@
Games::AlphaBeta provides a generic implementation of the AlphaBeta
game-tree search algorithm (also known as MiniMax search with alpha beta
pruning). This algorithm can be used to find the best move at a particular
position in any two-player, zero-sum game with perfect information.
Examples of such games include Chess, Othello, Connect4, Go, Tic-Tac-Toe
and many, many other boardgames.
Users must pass an object representing the initial state of the game as the
first argument to new(). This object must provide the following methods:
copy(), apply(), endpos(), evaluate() and findmoves(). This is explained
more carefully in Games::AlphaBeta::Position which is a base class you can
use to implement your position object.
WWW: http://search.cpan.org/dist/Games-AlphaBeta
Author: Stig Brautaset <stig@brautaset.org>
- Aaron Dalton
aaron@daltons.ca

View File

@ -0,0 +1,8 @@
%%SITE_PERL%%/Games/AlphaBeta.pm
%%SITE_PERL%%/Games/AlphaBeta/Position.pm
%%SITE_PERL%%/Games/AlphaBeta/Reversi.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Games/AlphaBeta/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Games/AlphaBeta
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Games 2>/dev/null || true
@dirrm %%SITE_PERL%%/Games/AlphaBeta
@unexec rmdir %D/%%SITE_PERL%%/Games 2>/dev/null || true