Skip to content

Latest commit

 

History

History
55 lines (29 loc) · 1.16 KB

README.md

File metadata and controls

55 lines (29 loc) · 1.16 KB

simple-chess-board

Based on a technical test that consists of creating a chessboard with "rojo" and "azul" instead of "white" and "black" but in diferent dimensions

Install

Open a command line or terminal on your computer.

Run

npm install -g simple-chess-board

Usage

Run the command to start the program, followed by a number that represents the dimension of the board you want to create.

For example, if you want to create an 8x8 chessboard, you can execute the following command:

 simple-chess-board 8

Output:

rojo azul rojo azul rojo azul rojo azul

azul rojo azul rojo azul rojo azul rojo

rojo azul rojo azul rojo azul rojo azul

azul rojo azul rojo azul rojo azul rojo

rojo azul rojo azul rojo azul rojo azul

azul rojo azul rojo azul rojo azul rojo

rojo azul rojo azul rojo azul rojo azul

azul rojo azul rojo azul rojo azul rojo

Contributing

If someone wants to add or improve something, I invite you to collaborate directly in this repository: simple-chess-board

License

simple-chess-board is released under the MIT License.