- Cell Phones 1491
- Desktop 748
- Editors 249
- Education, Science & Engineering 1375
- Games 3075
- Internet 4547
- Multimedia & Graphics 1134
- Office software 742
- PC 486
- Programming 2055
- 1C 141
- ActiveX 3
- Assembler 30
- C# 131
- C/С++ 280
- Data Bases 514
- Delphi/Pascal 499
- Disassemblers 6
- OpenGL/DirectX 5
- PHP 161
- Setup Software 23
- Visual Basic 24
- Others 238
- Security 1061
- SEO 289
- Software for Pocket PC 185
- Utilities 1225
PHP script of tic-tac-toe game
Refunds: 0
Uploaded: 17.11.2020
Content: tic_tac_toe.zip 7,93 kB
Product description
PHP script for the game of tic-tac-toe.
The script consists of three files - a form for the game, a style file(two pictures) and a class that performs calculations.
Features of the script:
Implemented validation of incoming data.
Exception Handling.
The script is written using OOP.
Two people play, take turns clicking on the playing field.
The game is not online from two different computers, both players play on the same computer in turn.
The moves are stored in the session.
All methods are documented.
PHPDoc.
The script is tested on php versions 7.0.0 and higher.
PHP version 7.0.0 or higher is required
Demo of the script https://scripts.php-include.ru/tic_tac_toe/index.php
Installation:
Copy file TicTacToe.php
Copy the index.php file (or its content into the script you need)
Copy file styles.css
Copy the images folder