Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 405 Bytes

Readme.md

File metadata and controls

24 lines (18 loc) · 405 Bytes

Problem

A chess board is composed by boxes black and white. The boxes are arranged by alternating the colors.

For this example, you need to replace black by 0 and white by 1, also the board size (columns and rows) is defined by the user.

Input

columns = number

rows = number

Output

$ your_script.rb 5 8
01010
10101
01010
10101
01010
10101
01010
10101