Skip to content

dennispansegrau/chess-piece-homework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess Piece Homework

Link: https://thephp.cc/news/2021/01/here-is-your-homework
13th January 2021


Installation

composer install

Execute

php bin/console chess [<board_position> [<chess_piece> [<chess_piece_color>]]]

All parameters are optional. Without an input a random value is chosen.
<board_position> input format must be a letter and a number e.g. a1, e5, h8
<chess_piece> input must be King, Queen, Rook, Bishop, KNight or Pawn
<chess_piece_color> input must be white or black

Example commands

php bin/console chess a2 P w  
php bin/console chess e5 Q b  
php bin/console chess h4 K w  

Releases

No releases published

Packages

No packages published

Languages