Skip to content
/ Poker Public

An Example for "Web Application Programming"

Notifications You must be signed in to change notification settings

baileykm/Poker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poker

- An Example for Server-side Push

This is a course example for "Application Development Technology", powered by Bailey :)

Server-side browser push technologies have been around for a while in one way or another, ranging from crude browser polling to Flash enabled frameworks. There are so many evolution and mechanics of server-push technologies, including:

  • Server streaming
  • Polling and long Polling
  • Comet
  • Web Sockets
  • Server-sent Events

In this example, we will use the Web Sockets to build a traditional poker game, known as "Landlord Fighter". The rules of the game can be searched on Baidu.

Deployment and Run

  1. Build the PHP runtime environment. For simplicity, you can download and install phpStudy. (Maybe you need to configure the listening port)

  2. Unzip or git clone this project into the Web-Root folder. eg. D:/phpStudy/WWW

  3. Run start_game.bat to start the WebSocket service.

  4. Now, you can play the game at http://localhost/Poker.

Toolkits & libraries

Some toolkits/libraries were used in this project, including:

Ok, that all, Enjoy!

About

An Example for "Web Application Programming"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published