Skip to content

alexandreelise/puissance4-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Puissance 4 en PHP


En Français:


Portage en PHP de la version du jeu Puissance 4 codé en C par un ami: Yannick LAVALLIÈRE dans son projet https://github.com/LAVALLIERE/puissance4-c.git

Pré-requis:

  • Etre à l'aise avec les lignes de commandes et le terminal
  • Avoir PHP 7.3 ou plus récent installé sur votre machine.
  • Avoir Git installé pour pouvoir cloner le dépôt (optionnel car vous pouvez télécharger le fichier zip du code source)

Instructions:

Dans votre terminal, tapez les commandes suivantes

git clone https://github.com/alexandreelise/puissance4-php.git \
 && cd puissance4-php \
 && php puissance4.php

Cela va exécuter le jeu en mode cli. Pour plus de modes de jeu, je vous invite à lire le code source. Vous y trouverez des fonctionnalités cachées. ;-)


In English:


A port in PHP of the Connect 4 game written in C by a friend: Yannick LAVALLIÈRE in his project https://github.com/LAVALLIERE/puissance4-c.git


Requirements:

  • Have a good grasp of terminal. At least basic knowledge of command line usage.
  • Have at least PHP version 7.3 or later installed on your machine
  • Have Git installed to clone the repo (optional because you can download the zip package of the source code instead)

Usage:

In your terminal, type the following commands

git clone https://github.com/alexandreelise/puissance4-php.git \
 && cd puissance4-php \
 && php puissance4.php

This will execute the cli game mode. For more game modes I invite you to read the code. You'll find hidden features. ;-)