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

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

Serving Software Downloads in 976 Categories, Downloaded 29.546.887 Times

Games::Othello 0.01

  Date Added: June 20, 2010  |  Visits: 599

Games::Othello

Report Broken Link
Printer Friendly Version


Product Homepage
Download (73 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  
Games  -  Empire Block World: Kingdom Builder - Top Fun Addictive Puzzle Game (Best Free Kids Games) 1.0
Ready to tease your brain? Clear out the blocks in as little moves as possible. The game is pretty simple, you just swap blocks and match them until you clear them all out. Sounds simple enough? but wait till you get to the higher levels as it...
17.1 MB  
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  
Puzzles  -  BlueBox 1.0
Bluebox is a puzzle game where the goal is to push all the blue boxes to the correct places with as few moves as possible. Once all the boxes are at the right places, you can move on to the next level, this is not always an easy task however.
330 KB  
Games  -  A1 Game Clock 2.0
A simple, easy to use game clock with support for all possible tournament time controls. Now you can replace a physical game clock with this inexpensive app that has more features than even the most expensive digital game clock. This app...
7.7 MB  
Games  -  Emoji Crush Match Three Mania 1.0
Emoji Crush Match Three Mania Fun new match three puzzle game. Get the highest score while using the least amount of moves as possible. Free for a limited time. Requirements: iOS 5.0 or later. Compatible with iPhone, iPad, and...
7.4 MB  
Games  -  Card Titans 1.1.0.0
Match them all! Exercise your memory with the latest game from us: Card Titans. The object is to match pairs of cards in as little moves as possible. Cards are laid out in a grid face down, and player flips cards over. When cards are...
3 MB  
Games  -  JewelSwap 1.0.0.0
Click on two pieces to swap them. Swaps must create a matching set of three-in-a-row (or more) horizontally or vertically. Those pieces will be removed and new pieces will drop down to replace them. The game ends when no more moves are possible....
1024 KB  
Games  -  Slider Puzzle Deluxe 1.0.0.0
A modern take on the classic sliding puzzle board game. Slide the pieces of the puzzle around to recreate the picture using as few moves as possible. Requirements: Windows Phone 8.1, Windows Phone 8
2 MB  
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  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB