News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Adam Jensen's Blog:
Spades and the Strategy Pattern
March 12, 2009 @ 13:44:01

Adam Jensen has submitted a new post he's written up about the idea he had for a spades game written in PHP. There's no fancy graphics or computer AI but there is a good example of using the Strategy Pattern between the players and interfaces in this CLI script.

Here's the project (and I deliberately didn't check to see if anyone's done this before): write a command-line PHP script that runs any number of automated spades games, involving a variety of players utilizing different play algorithms.

The Strategy Pattern comes in with the players - each influences how the player will bid and what cards it will choose to play. He gives the code for these two interfaces - Spades_Player_Interface and Spades_Strategy_Interface. He also sets up a randomizing class and several of the other "structure" classes (Spades_Play, Spades_Card, etc).

This post is just the start of the project. If there's enough interest, Adam will release the source for the project including some of the other strategies he's considering.

0 comments voice your opinion now!
spades strategy pattern interface designpattern player


David Sklar's Blog:
Swanky New Ning Sites!
September 28, 2006 @ 07:55:00

David Sklar points out some of the new base sites that are being offered on the PHP-based mashup site, Ning.

It's been a lot of hard work, so I'm quite excited that we've just released three great new Ning sites: Ning Videos, Ning Photos, and Ning Group.

Plus, all three sites have the juicy bits that every site on the Ning platform gets -- things such as cloneability, complete customization, and built-in REST APIs. I've been watching the feeds for clones of photos and videos -- I suppose seeing who's cloned sites you care about is the Web 2.0 version of ego surfing.

He also talks about some of the features of the Ning Photo cloneable site like the slideshow and, in Ning Video, the embeddable player. The Ning Group application also has parsing abilities to help with sharing documents/music/photos/etc with anyone.

0 comments voice your opinion now!
ning sites clone base photos videos group player slideshow ning sites clone base photos videos group player slideshow


Aaron Wormus' Blog:
32 Cards - PHP Based World CUP 2006 Game
April 27, 2006 @ 06:40:30

Aaron Wormus notes in this new blog entry about a client-side card game he's been introduced to that comines great graphics, a smart AI and a powerful combination - PHP5 and the Winbinder library.

I remember the WTF moment I had a couple years ago when Frozen Bubble was released. The game was nice but the awesome bit was the it was based on PERL, which was my programming language of choice at the time.

I had that moment again this morning when an email arrived in my mail box from Rubem Pechansky (The WinBinder Guy) where he announced his Worldcup 2006 card game which is based entirely on PHP5 and Winbinder.

The game, 32cards is a digital card trading game with tons of data about each country for each card. On each turn, the topmost card is uncovered and five stats are compared. The player with the highest stats wins and points are awarded. You can gabs this great example of how flexible PHP really is (and try out a pretty cool game) by heading over to their site and grabbing the download.

2 comments voice your opinion now!
card game world cup computer player points winbinder card game world cup computer player points winbinder


M. Norway's Blog:
Podcast player in Flash! PHP Script to Convert RSS to XSPF
April 25, 2006 @ 07:31:10

m. norway has found way to combine the popular XSPF web music player Flash application with the flexibility of RSS feeds via a simple PHP script.

I like the flashbased XSPF mp3 player. I had planned to rewrite the flashcode so that it could read rss with enclosures instead, but I liked the possibility to have unique pictures on each track, and I wanted to check out the XSPF format.

So I wrote a PHP script that uses DOMXML and xpath to convert an existing rss to xspf, it even have a search function of sorts.

He shows an example of the script that convers the RSS feed into a tracklist that the Flash mp3 player can understand. I also like his idea of using del.icio.us to roll a "make your own podcast" kind of thing with the RSS output from your links.

1 comment voice your opinion now!
script flash podcast rss xspf playlist player mp3 script flash podcast rss xspf playlist player mp3



Community Events





Don't see your event here?
Let us know!


testing configure developer series language refactor wordpress install community opinion framework unittest release threedevsandamaybe podcast list code introduction laravel interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework