PHP Classes

The Gameboard: Implement a board game using the takeover strategy

Recommend this page to a friend!
  Info   View files Documentation   View files View files (24)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 295 All time: 7,449 This week: 571Up
Version License PHP version Categories
gameboard 1.0.0Public Domain5PHP 5, Games
Description 

Author

This class can implement a board game using the takeover strategy.

It implements several steps of a board game of this type like: select a game, select a player, add player, start game, player roll, next player, claim tile, player quit, move forward, move back, transport, etc..

The package comes with a couple sample games to play or you may design your own.

Innovation Award
PHP Programming Innovation award nominee
December 2017
Number 2
The takeover strategy is used in many games to present challenges that engage many people in popular games.

This class implements the steps of the takeover strategy that can be use to create many types games.

Manuel Lemos
Picture of Dave Smith
  Performance   Level  
Name: Dave Smith is available for providing paid consulting. Contact Dave Smith .
Classes: 51 packages by
Country: United States United States
Age: 59
All time rank: 618 in United States United States
Week rank: 19 Up2 in United States United States Up
Innovation award
Innovation award
Nominee: 32x

Winner: 7x

Documentation

Class: gameboard Version: 0.1 10/5/2017 Released into the public domain Description: This class will present a gameboard with a take over strategy to win. It comes with a couple sample games to play or you may design your own. Installation: Upload files to a web accessible location on your server (eg. public_html) Configuration: No configuration needed. If you receive warnings about including files, change the $this->docRoot variable located in the game/settings.php file. Usage: Point your browser to the index.php file and start playing. Customizing: The default settings for all games is contained in the game/settings.php file and can be changed however you want. Each game also contains a settings.php file in its folder that is used to over-ride the defaults and provide data for that specific game. Creating Games: Create a new folder off of the game folder for your game. Add the game to the $this->game array using 'folder' => 'game name' structure. Copy the files from an existing game folder. The views are the pages displayed depending on what stage the game is currently in, which you can change as your game needs. Changelog 0.1 Initial beta release

  Files folder image Files  
File Role Description
Files folder imagegame (2 files, 2 directories)
Accessible without login Plain text file board.css Aux. Styles
Plain text file gameboard.class.php Class Main Class
Accessible without login Plain text file index.php Appl. Game Board Design
Accessible without login Plain text file manual.txt Doc. Usage Documentation

  Files folder image Files  /  game  
File Role Description
Files folder imagesipstrip (1 file, 1 directory)
Files folder imagetruthdare (1 file, 1 directory)
  Accessible without login Plain text file select.php Appl. Game Select View
  Accessible without login Plain text file settings.php Conf. Configuration Settings

  Files folder image Files  /  game  /  sipstrip  
File Role Description
Files folder imageviews (8 files)
  Accessible without login Plain text file settings.php Conf. Configuration Settings

  Files folder image Files  /  game  /  sipstrip  /  views  
File Role Description
  Accessible without login Plain text file action.php Appl. Game View
  Accessible without login Plain text file intro.php Appl. Game View
  Accessible without login Plain text file noaction.php Appl. Game View
  Accessible without login Plain text file onforce1.php Appl. Game View
  Accessible without login Plain text file onforce2.php Appl. Game View
  Accessible without login Plain text file roll.php Appl. Game View
  Accessible without login Plain text file selplayer.php Appl. Game View
  Accessible without login Plain text file winner.php Appl. Game View

  Files folder image Files  /  game  /  truthdare  
File Role Description
Files folder imageviews (8 files)
  Accessible without login Plain text file settings.php Conf. Configuration Settings

  Files folder image Files  /  game  /  truthdare  /  views  
File Role Description
  Accessible without login Plain text file action.php Appl. Game View
  Accessible without login Plain text file intro.php Appl. Game View
  Accessible without login Plain text file noaction.php Appl. Game View
  Accessible without login Plain text file onforce1.php Appl. Game View
  Accessible without login Plain text file onforce2.php Appl. Game View
  Accessible without login Plain text file roll.php Appl. Game View
  Accessible without login Plain text file selplayer.php Appl. Game View
  Accessible without login Plain text file winner.php Appl. Game View

 Version Control Unique User Downloads Download Rankings  
 0%
Total:295
This week:0
All time:7,449
This week:571Up