Skip to content

aleonal/PL-P1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 

Repository files navigation

Web Scripting with PHP

Contributors: Jose Antoine Leon Cordero & Ricardo Sanchez

Notes:

  • Info API is finalized.

  • New API is finalized.

  • Play API does not determine a diagonal-row win correctly.

  • Array of winning positions is not populated.

  • Smart strategy is not so smart (does not detect winning/losing row).

Requirements:

  1. The web service shall work with a provided Java client available and downloadable from the course website (c4Client.jar).

  2. The web service shall support multiple clients concurrently, each client playing against the server (see R5 below).

  3. A game board shall consist of six rows and seven columns, i.e., 6*7 places in which discs can be dropped.

  4. A column of the board shall be identified by a 0-based index, e.g., 2 for the third column.

  5. The web service shall provide at least two different move strategies for the computer, say Random and Smart. The Smart strategy shall be indeed "smart" to allow for a realistic play. Minimally, it should detect a winning/loosing row, i.e., three consecutive discs with an open end.

  6. The web service shall determine the outcome: win, loss, or draw.

About

Connect 4 PHP Web Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages