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 32.291.200 Times

Games::Othello 0.01

  Date Added: June 20, 2010  |  Visits: 641

Games::Othello

Report Broken Link
Printer Friendly Version


Product Homepage
Download (74 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
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  
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  
Casino Games  -  Aces Up Solitaire 1.0
Aces Up Solitaire is a free solitaire card game where the player moves to the foundation any top card that is not the highest valued card in it's suit. A player may also choose to discard up to 5 cards that are preventing the player from moving...
3.41 MB  
Games  -  Cheater for Ruzzle - Helper to find the best words for your Ruzzle game! 1.4
Need some help finding words? Want to rake in some serious points? Then this is the app for you! Cheater for Ruzzle loads in a screenshot of your Ruzzle game and immediately returns you all possible words including the amount of points...
8.8 MB  
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 3.15.3
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