Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.081.785 Times

Games::Othello 0.01

  Date Added: June 20, 2010  |  Visits: 1.152

Games::Othello

Report Broken Link
Printer Friendly Version


Product Homepage
Download (98 downloads)



Games::Othello is a Perl extension for modelling a game of Othello. SYNOPSIS use Games::Othello; my $game = Games::Othello->new(); while( !game->over ) { printf "It is presently %ss move", ($game->whos_move eq b) ? black, white; my @possible_moves = values $game->possible_moves(); if ( ! @possible_moves ) { print "You have no moves available, you must pass. $game->pass_to_opponent; } else { foreach ( my $move ) @possible_moves ) { printf "You will take %d of your opponents chips if you place your chip on %d,%d", scalar @{ $move->{chips} }, $move->{x}, $move->{y}; } my ($locx, $locy) = get_move(); my $flipped = $game->place_chip( $locx, $locy ); } my $layout = $game->chip_layout(); foreach my $row ( @$layout ) { foreach my $pos ( @$row ) { printf %3s, ($pos eq b) ? B # Black occupied square. : ($pos eq w) ? W # White occupied square. : # Un-occupied square. } print "nn"; } } my ($black_score, $white_score) = $game->score;.

Requirements: No special requirements
Platforms: Linux
Keyword: Extension Game Gamesothello Libraries Modelling Moves Perl Possible Programming
Users rating: 0/10

License: Freeware Size: 5.12 KB
USER REVIEWS
More Reviews or Write Review


GAMES::OTHELLO RELATED
Libraries  -  Inline::Lua 0.04
Inline::Lua is a Perl extension for embedding Lua scripts into Perl code. SYNOPSIS use Inline Lua; print "The answer to life, the universe and everything is ", answer(6, 7), "n"; __END__ __Lua__ function answer (a, b) return a*b end...
24.58 KB  
Puzzles  -  Bricks Puzzles 1.0
Logic game with blocks where the goal is to move a block thru a maze of other blocks in as few moves as possible. There are five games with different levels of difficulty from Bricks Jr. for younger players to Bricks IV for the masters. When you...
89 KB  
Libraries  -  Filesys::SamFS 0.035
Filesys::SamFS is a Perl extension mapping the SamFS API to Perl. SYNOPSIS use Filesys::SamFS; Filesys::SamFS makes the SamFS API available to Perl. SamFS is a HSM (Hierarchical Storage Management) Filesystem; it manages files in two storage...
18.43 KB  
Board Games  -  Embuscade 1.1
Embuscade is a 120 squares Minesweeper-type board game where your ball moves square by square and you must find and avoid every trap hidden in some of the squares. You can save your highest scores on the Internet, to compare yourself with other...
2.1 MB  
Utilities  -  Dylan Code Collection 1.7
A collection of useful libraries written in the Dylan programming language. The intent of this project is to provide easily accessible libraries for people developing applications using Functional Developer and/or Gwydion Dylan.
673.63 KB  
Programming  -  kin 0.0.2
kin is a set of libraries and tools supporting meta-programming for engineering and technical computing applications. This JVM version of kin has been superseded by the stand-alone version being developed at http://purl.org/net/kin.
477.44 KB  
Libraries  -  Chess::Game 0.6.0
Chess::Game is a class to record and validate the moves of a game of chess. SYNOPSIS use Chess::Game; $game = Chess::Game->new(); $clone = $game->clone(); $move = $game->make_move("e2", "e4"); $move_c = $clone->make_move("e2", "e4");...
21.5 KB  
Libraries  -  Chess::PGN::Parse 0.19
Chess::PGN::Parse is a Perl module that reads and parses PGN (Portable Game Notation) Chess files. SYNOPSIS use Chess::PGN::Parse; use English qw( -no_match_vars ); my $pgnfile = "kk_2001.pgn"; my $pgn = new Chess::PGN::Parse $pgnfile or...
26.62 KB  
Libraries  -  ObjStore 1.59
ObjStore is a Perl extension for ObjectStore OODBMS. SYNOPSIS Like perl? Sick of SQL? Ready to try something new? This extension implements something like a relational database management system, except that s/SQL/Perl/ig. ObjectStore is the...
163.84 KB  
Libraries  -  Search::Glimpse 0.02
Search::Glimpse is a Perl extension to communicate with Glimpse server. SYNOPSIS use Search::Glimpse; my $glimpse = Search::Glimpse->new; my @results = $glimpse->search("search this string"); ABSTRACT This module is an extension to use...
4.1 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB