Skip to content

alexandreelise/puissance4-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Puissance 4 en PHP

visitor badge GitHub followers YouTube Channel Views

    __  __     ____         _____                              __                      __              
   / / / ___  / / ____     / ___/__  ______  ___  _____       / ____  ____  ____ ___  / ___  __________
  / /_/ / _ \/ / / __ \    \__ \/ / / / __ \/ _ \/ ___/  __  / / __ \/ __ \/ __ `__ \/ / _ \/ ___/ ___/
 / __  /  __/ / / /_/ /   ___/ / /_/ / /_/ /  __/ /     / /_/ / /_/ / /_/ / / / / / / /  __/ /  (__  ) 
/_/ /_/\___/_/_/\____/   /____/\__,_/ .___/\___/_/      \____/\____/\____/_/ /_/ /_/_/\___/_/  /____/  
                                   /_/                                                                 


GitHub Repo stars GitHub forks GitHub watchers


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. ;-)